depot/third_party/nixpkgs/pkgs/development/python-modules/rowan/default.nix

44 lines
851 B
Nix
Raw Normal View History

{ lib
, buildPythonPackage
, fetchFromGitHub
, setuptools
, pytestCheckHook
, scipy
, numpy
}:
buildPythonPackage rec {
pname = "rowan";
version = "1.3.0";
pyproject = true;
src = fetchFromGitHub {
owner = "glotzerlab";
repo = "rowan";
rev = "v${version}";
hash = "sha256-klIqyX04w1xYmYtAbLF5jwpcJ83oKOaENboxyCL70EY=";
};
nativeBuildInputs = [
setuptools
];
nativeCheckInputs = [
pytestCheckHook
scipy
];
propagatedBuildInputs = [
numpy
];
pythonImportsCheck = [ "rowan" ];
meta = with lib; {
description = "A Python package for working with quaternions";
homepage = "https://github.com/glotzerlab/rowan";
changelog = "https://github.com/glotzerlab/rowan/blob/${src.rev}/ChangeLog.rst";
license = licenses.bsd3;
maintainers = with maintainers; [ doronbehar ];
};
}