diff options
Diffstat (limited to 'pkgs/development/python-modules/quaternion/default.nix')
| -rw-r--r-- | pkgs/development/python-modules/quaternion/default.nix | 45 |
1 files changed, 33 insertions, 12 deletions
diff --git a/pkgs/development/python-modules/quaternion/default.nix b/pkgs/development/python-modules/quaternion/default.nix index 924b439047f5..eca00ec9788a 100644 --- a/pkgs/development/python-modules/quaternion/default.nix +++ b/pkgs/development/python-modules/quaternion/default.nix @@ -2,33 +2,54 @@ lib, buildPythonPackage, fetchFromGitHub, - oldest-supported-numpy, + + # build-system + hatchling, + numpy, + setuptools, + + # dependencies scipy, - numba, + + # tests + pytest-cov-stub, + pytestCheckHook, }: buildPythonPackage rec { pname = "quaternion"; - version = "2024.0.3"; - format = "pyproject"; + version = "2024.0.8"; + pyproject = true; src = fetchFromGitHub { owner = "moble"; - repo = pname; + repo = "quaternion"; tag = "v${version}"; - hash = "sha256-3UVqeiGcdsjQQpVRhcDBf1N0XJw+Xe/Pp+4lmGzl8ws="; + hash = "sha256-Le9i7oFPcBuZw/oNwCxz3svzKg9zREk4peIJadTiJ/M="; }; - propagatedBuildInputs = [ - oldest-supported-numpy - numba + build-system = [ + hatchling + numpy + setuptools + ]; + + dependencies = [ + numpy scipy ]; - meta = with lib; { + pythonImportsCheck = [ "quaternion" ]; + + nativeCheckInputs = [ + pytest-cov-stub + pytestCheckHook + ]; + + meta = { description = "Package add built-in support for quaternions to numpy"; homepage = "https://github.com/moble/quaternion"; - license = licenses.mit; - maintainers = [ maintainers.ocfox ]; + license = lib.licenses.mit; + maintainers = with lib.maintainers; [ ocfox ]; }; } |
