Files
nixpkgs/pkgs/development/python-modules/pyquaternion/default.nix
T
Alexis Hildebrandt bf995e3641 treewide: Remove ending period from meta.description
nix run nixpkgs#silver-searcher -- -G '\.nix$' -0l 'description.*".*\.";' pkgs \
  | xargs -0 nix run nixpkgs#gnused -- -i '' -Ee 's/(description.*)\.";/\1";/'
2024-06-09 23:04:51 +02:00

37 lines
820 B
Nix

{
lib,
buildPythonPackage,
fetchPypi,
numpy,
nose,
}:
buildPythonPackage rec {
pname = "pyquaternion";
version = "0.9.9";
format = "setuptools";
src = fetchPypi {
inherit pname version;
hash = "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 ];
nativeCheckInputs = [ 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 ];
};
}