1{ lib
2, buildPythonPackage
3, fetchPypi
4, numpy
5, pytestCheckHook
6}:
7
8buildPythonPackage rec {
9 pname = "quantities";
10 version = "0.12.5";
11
12 src = fetchPypi {
13 inherit pname version;
14 sha256 = "67546963cb2a519b1a4aa43d132ef754360268e5d551b43dd1716903d99812f0";
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}