blob: 937d031253530293d11996c2afe646c6a589ee54 (
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
45
46
47
48
49
50
51
52
|
{ lib
, buildPythonPackage
, fetchPypi
, numpy
, pytestCheckHook
, pythonOlder
, setuptools
, setuptools-scm
}:
buildPythonPackage rec {
pname = "quantities";
version = "0.14.1";
format = "setuptools";
disabled = pythonOlder "3.8";
src = fetchPypi {
inherit pname version;
hash = "sha256-7+r//AwDZPiRqTJyOc0SSWvMtVzQN6bRv0TecG9yKHc=";
};
nativeBuildInputs = [
setuptools
setuptools-scm
];
propagatedBuildInputs = [
numpy
];
nativeCheckInputs = [
pytestCheckHook
];
disabledTests = [
# test fails with numpy 1.24
"test_mul"
];
pythonImportsCheck = [
"quantities"
];
meta = with lib; {
description = "Quantities is designed to handle arithmetic and conversions of physical quantities";
homepage = "https://python-quantities.readthedocs.io/";
changelog = "https://github.com/python-quantities/python-quantities/blob/v${version}/CHANGES.txt";
license = licenses.bsd2;
maintainers = with maintainers; [ ];
};
}
|