1{ lib
2, buildPythonPackage
3, fetchPypi
4, pytest
5, six
6, numpy
7, traitlets
8}:
9
10buildPythonPackage rec {
11 pname = "numtraits";
12 version = "0.2";
13 name = "${pname}-${version}";
14
15 src = fetchPypi {
16 inherit pname version;
17 sha256 = "2fca9a6c9334f7358ef1a3e2e64ccaa6a479fc99fc096910e0d5fbe8edcdfd7e";
18 };
19
20 checkInputs = [ pytest ];
21 propagatedBuildInputs = [ six numpy traitlets];
22
23 checkPhase = ''
24 py.test
25 '';
26
27 meta = {
28 description = "Numerical traits for Python objects";
29 license = lib.licenses.bsd2;
30 maintainers = with lib.maintainers; [ fridh ];
31 homepage = https://github.com/astrofrog/numtraits;
32 };
33}