summary refs log tree commit diff
path: root/pkgs/development/python-modules/quantities/default.nix
blob: a4274317e1bdc2b45b9f93ef49e42215d4ae3178 (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
{ lib
, buildPythonPackage
, fetchPypi
, numpy
, python
}:

buildPythonPackage rec {
  pname = "quantities";
  version = "0.12.2";

  src = fetchPypi {
    inherit pname version;
    sha256 = "92e8397938516483f4fd1855097ec11953ab10dd0bf3293954559226679f76f0";
  };

  propagatedBuildInputs = [ numpy ];

  checkPhase = ''
    ${python.interpreter} setup.py test -V 1
  '';

  meta = {
    description = "Quantities is designed to handle arithmetic and";
    homepage = http://python-quantities.readthedocs.io/;
    license = lib.licenses.bsd2;
  };
}