1{ lib
2, buildPythonPackage
3, fetchPypi
4, glibcLocales
5, pytest
6, mock
7, ipython_genutils
8, decorator
9, enum34
10, pythonOlder
11, six
12}:
13
14buildPythonPackage rec {
15 pname = "traitlets";
16 version = "4.3.2";
17
18 src = fetchPypi {
19 inherit pname version;
20 sha256 = "9c4bd2d267b7153df9152698efb1050a5d84982d3384a37b2c1f7723ba3e7835";
21 };
22
23 checkInputs = [ glibcLocales pytest mock ];
24 propagatedBuildInputs = [ ipython_genutils decorator six ] ++ lib.optional (pythonOlder "3.4") enum34;
25
26 checkPhase = ''
27 LC_ALL="en_US.UTF-8" py.test
28 '';
29
30# doCheck = false;
31
32 meta = {
33 description = "Traitlets Python config system";
34 homepage = http://ipython.org/;
35 license = lib.licenses.bsd3;
36 maintainers = with lib.maintainers; [ fridh ];
37 };
38}