2017-10-29 13:31:17 +01:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, glibcLocales
|
|
|
|
, pytest
|
|
|
|
, mock
|
|
|
|
, ipython_genutils
|
|
|
|
, decorator
|
|
|
|
, enum34
|
2018-05-10 07:16:18 +02:00
|
|
|
, pythonOlder
|
|
|
|
, six
|
2017-10-29 13:31:17 +01:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "traitlets";
|
|
|
|
version = "4.3.2";
|
|
|
|
name = "${pname}-${version}";
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
|
|
|
sha256 = "9c4bd2d267b7153df9152698efb1050a5d84982d3384a37b2c1f7723ba3e7835";
|
|
|
|
};
|
|
|
|
|
|
|
|
checkInputs = [ glibcLocales pytest mock ];
|
2018-05-10 07:16:18 +02:00
|
|
|
propagatedBuildInputs = [ ipython_genutils decorator six ] ++ lib.optional (pythonOlder "3.4") enum34;
|
2017-10-29 13:31:17 +01:00
|
|
|
|
|
|
|
checkPhase = ''
|
2018-05-10 07:16:18 +02:00
|
|
|
LC_ALL="en_US.UTF-8" py.test
|
2017-10-29 13:31:17 +01:00
|
|
|
'';
|
|
|
|
|
2018-05-10 07:16:18 +02:00
|
|
|
# doCheck = false;
|
|
|
|
|
2017-10-29 13:31:17 +01:00
|
|
|
meta = {
|
|
|
|
description = "Traitlets Python config system";
|
|
|
|
homepage = http://ipython.org/;
|
|
|
|
license = lib.licenses.bsd3;
|
|
|
|
maintainers = with lib.maintainers; [ fridh ];
|
|
|
|
};
|
|
|
|
}
|