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