1{
2 lib,
3 buildPythonPackage,
4 fetchPypi,
5 numpy,
6 pytestCheckHook,
7 pythonOlder,
8 setuptools,
9 setuptools-scm,
10}:
11
12buildPythonPackage rec {
13 pname = "quantities";
14 version = "0.15.0";
15 format = "setuptools";
16
17 disabled = pythonOlder "3.8";
18
19 src = fetchPypi {
20 inherit pname version;
21 hash = "sha256-nqMeKg11F88k1UaxQUbe+SkmOZk6YWzKYbh173lrSys=";
22 };
23
24 nativeBuildInputs = [
25 setuptools
26 setuptools-scm
27 ];
28
29 propagatedBuildInputs = [ numpy ];
30
31 nativeCheckInputs = [ pytestCheckHook ];
32
33 disabledTests = [
34 # test fails with numpy 1.24
35 "test_mul"
36 ];
37
38 pythonImportsCheck = [ "quantities" ];
39
40 meta = with lib; {
41 description = "Quantities is designed to handle arithmetic and conversions of physical quantities";
42 homepage = "https://python-quantities.readthedocs.io/";
43 changelog = "https://github.com/python-quantities/python-quantities/blob/v${version}/CHANGES.txt";
44 license = licenses.bsd2;
45 maintainers = [ ];
46 };
47}