blob: fab1e6c4f8cc652c54e13623a050abf5a4e9baff (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
|
{
lib,
buildPythonPackage,
fetchFromGitHub,
numpy,
setuptools,
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "pyquaternion";
version = "0.9.9";
pyproject = true;
src = fetchFromGitHub {
owner = "KieranWynn";
repo = "pyquaternion";
rev = "v${version}";
hash = "sha256-L0wT9DFUDRcmmN7OpmIDNvtQWQrM7iFnZt6R2xrJ+3A=";
};
# 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
'';
build-system = [ setuptools ];
dependencies = [ numpy ];
nativeCheckInputs = [ pytestCheckHook ];
pytestFlagsArray = [ "pyquaternion/test/" ];
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 ];
};
}
|