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
14 src = fetchPypi {
15 inherit pname version;
16 sha256 = "2fca9a6c9334f7358ef1a3e2e64ccaa6a479fc99fc096910e0d5fbe8edcdfd7e";
17 };
18
19 checkInputs = [ pytest ];
20 propagatedBuildInputs = [ six numpy traitlets];
21
22 checkPhase = ''
23 py.test
24 '';
25
26 meta = {
27 description = "Numerical traits for Python objects";
28 license = lib.licenses.bsd2;
29 maintainers = with lib.maintainers; [ fridh ];
30 homepage = https://github.com/astrofrog/numtraits;
31 };
32}