1{ 2 lib, 3 buildPythonPackage, 4 fetchPypi, 5 numpy, 6 nose, 7}: 8 9buildPythonPackage rec { 10 pname = "pyquaternion"; 11 version = "0.9.9"; 12 format = "setuptools"; 13 14 src = fetchPypi { 15 inherit pname version; 16 hash = "sha256-sfYa8hnLL+lmtft5oZISTy5jo/end6w8rfKVexqBvqg="; 17 }; 18 19 # The VERSION.txt file is required for setup.py 20 # See: https://github.com/KieranWynn/pyquaternion/blob/master/setup.py#L14-L15 21 postPatch = '' 22 echo "${version}" > VERSION.txt 23 ''; 24 25 propagatedBuildInputs = [ numpy ]; 26 27 nativeCheckInputs = [ nose ]; 28 pythonImportsCheck = [ "pyquaternion" ]; 29 30 meta = with lib; { 31 description = "Library for representing and using quaternions."; 32 homepage = "http://kieranwynn.github.io/pyquaternion/"; 33 license = licenses.mit; 34 maintainers = with maintainers; [ lucasew ]; 35 }; 36}