1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 6 # build-system 7 hatchling, 8 numpy, 9 setuptools, 10 11 # dependencies 12 scipy, 13 14 # tests 15 pytest-cov-stub, 16 pytestCheckHook, 17}: 18 19buildPythonPackage rec { 20 pname = "quaternion"; 21 version = "2024.0.12"; 22 pyproject = true; 23 24 src = fetchFromGitHub { 25 owner = "moble"; 26 repo = "quaternion"; 27 tag = "v${version}"; 28 hash = "sha256-HZDzzXf9lsvxa5yLayYvk3lgutEw0gEH8m0jkzwMAF8="; 29 }; 30 31 build-system = [ 32 hatchling 33 numpy 34 setuptools 35 ]; 36 37 dependencies = [ 38 numpy 39 scipy 40 ]; 41 42 pythonImportsCheck = [ "quaternion" ]; 43 44 nativeCheckInputs = [ 45 pytest-cov-stub 46 pytestCheckHook 47 ]; 48 49 meta = { 50 description = "Package add built-in support for quaternions to numpy"; 51 homepage = "https://github.com/moble/quaternion"; 52 license = lib.licenses.mit; 53 maintainers = with lib.maintainers; [ ocfox ]; 54 }; 55}