python3Packages.pyquaternion: init at 0.9.9

Signed-off-by: lucasew <lucas59356@gmail.com>
This commit is contained in:
lucasew 2022-01-07 17:40:29 -03:00
parent 424073c2cd
commit a27bb7859a
2 changed files with 36 additions and 0 deletions

View file

@ -0,0 +1,34 @@
{ lib
, buildPythonPackage
, fetchPypi
, numpy
, nose
}:
buildPythonPackage rec {
pname = "pyquaternion";
version = "0.9.9";
src = fetchPypi {
inherit pname version;
sha256 = "sha256-sfYa8hnLL+lmtft5oZISTy5jo/end6w8rfKVexqBvqg=";
};
# The VERSION.txt file is required for setup.py
# See: https://github.com/KieranWynn/pyquaternion/blob/master/setup.py#L14-L15
postPatch = ''
echo "${version}" > VERSION.txt
'';
propagatedBuildInputs = [ numpy ];
checkInputs = [ nose ];
pythonImportsCheck = [ "pyquaternion" ];
meta = with lib; {
description = "Library for representing and using quaternions.";
homepage = "http://kieranwynn.github.io/pyquaternion/";
license = licenses.mit;
maintainers = with maintainers; [ lucasew ];
};
}

View file

@ -7250,6 +7250,8 @@ in {
pyquery = callPackage ../development/python-modules/pyquery { };
pyquaternion = callPackage ../development/python-modules/pyquaternion { };
pyquil = callPackage ../development/python-modules/pyquil { };
pyrabbit2 = callPackage ../development/python-modules/pyrabbit2 { };