1{ lib
2, buildPythonPackage
3, fetchPypi
4, numpy
5, pytestCheckHook
6}:
7
8buildPythonPackage rec {
9 pname = "quantities";
10 version = "0.13.0";
11
12 src = fetchPypi {
13 inherit pname version;
14 sha256 = "0fde20115410de21cefa786f3aeae69c1b51bb19ee492190324c1da705e61a81";
15 };
16
17 propagatedBuildInputs = [
18 numpy
19 ];
20
21 checkInputs = [
22 pytestCheckHook
23 ];
24
25 disabledTests = [
26 # Tests don't work with current numpy
27 # https://github.com/python-quantities/python-quantities/pull/195
28 "test_arctan2"
29 "test_fix"
30 ];
31
32 pythonImportsCheck = [ "quantities" ];
33
34 meta = with lib; {
35 description = "Quantities is designed to handle arithmetic and conversions of physical quantities";
36 homepage = "https://python-quantities.readthedocs.io/";
37 license = licenses.bsd2;
38 maintainers = with maintainers; [ ];
39 };
40}