bcb2f287e1
GitOrigin-RevId: d603719ec6e294f034936c0d0dc06f689d91b6c3
43 lines
849 B
Nix
43 lines
849 B
Nix
{ 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 = "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 ];
|
|
};
|
|
}
|