Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at gcc-offload 34 lines 675 B view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 oldest-supported-numpy, 6 scipy, 7 numba, 8}: 9 10buildPythonPackage rec { 11 pname = "quaternion"; 12 version = "2023.0.4"; 13 format = "pyproject"; 14 15 src = fetchFromGitHub { 16 owner = "moble"; 17 repo = pname; 18 rev = "refs/tags/v${version}"; 19 hash = "sha256-i+UPi+DrhItplfc6EvDhmr3CEH2/cHODoHVBElM7jY8="; 20 }; 21 22 propagatedBuildInputs = [ 23 oldest-supported-numpy 24 numba 25 scipy 26 ]; 27 28 meta = with lib; { 29 description = "Package add built-in support for quaternions to numpy"; 30 homepage = "https://github.com/moble/quaternion"; 31 license = licenses.mit; 32 maintainers = [ maintainers.ocfox ]; 33 }; 34}