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