1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 setuptools,
6 pytestCheckHook,
7 scipy,
8 numpy,
9}:
10
11buildPythonPackage rec {
12 pname = "rowan";
13 version = "1.3.2";
14 pyproject = true;
15
16 src = fetchFromGitHub {
17 owner = "glotzerlab";
18 repo = "rowan";
19 rev = "v${version}";
20 hash = "sha256-fcxVpzLhbLjPIifNBx0olq1dUTmNM9IH38MQybkWZSg=";
21 };
22
23 nativeBuildInputs = [
24 setuptools
25 ];
26 nativeCheckInputs = [
27 pytestCheckHook
28 scipy
29 ];
30
31 propagatedBuildInputs = [
32 numpy
33 ];
34
35 pythonImportsCheck = [ "rowan" ];
36
37 meta = with lib; {
38 description = "Python package for working with quaternions";
39 homepage = "https://github.com/glotzerlab/rowan";
40 changelog = "https://github.com/glotzerlab/rowan/blob/${src.rev}/ChangeLog.rst";
41 license = licenses.bsd3;
42 maintainers = with maintainers; [ doronbehar ];
43 };
44}