about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/python-modules/numtraits/default.nix
blob: 624f32fd337b5d67a0b2d5a50fdd1260b2aef17a (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
{ lib
, buildPythonPackage
, fetchPypi
, pytest
, six
, numpy
, traitlets
}:

buildPythonPackage rec {
  pname = "numtraits";
  version = "0.2";

  src = fetchPypi {
    inherit pname version;
    sha256 = "2fca9a6c9334f7358ef1a3e2e64ccaa6a479fc99fc096910e0d5fbe8edcdfd7e";
  };

  checkInputs = [ pytest ];
  propagatedBuildInputs = [ six numpy traitlets];

  checkPhase = ''
    py.test
  '';

  meta = {
    description = "Numerical traits for Python objects";
    license = lib.licenses.bsd2;
    maintainers = with lib.maintainers; [ fridh ];
    homepage = "https://github.com/astrofrog/numtraits";
  };
}