2017-10-29 12:31:17 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, glibcLocales
|
|
|
|
, pytest
|
|
|
|
, mock
|
|
|
|
, ipython_genutils
|
|
|
|
, decorator
|
|
|
|
, enum34
|
2018-05-10 05:16:18 +00:00
|
|
|
, pythonOlder
|
|
|
|
, six
|
2017-10-29 12:31:17 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "traitlets";
|
2020-11-29 14:04:44 +00:00
|
|
|
version = "5.0.5";
|
2020-12-11 11:09:48 +00:00
|
|
|
disabled = pythonOlder "3.7";
|
2017-10-29 12:31:17 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-11-29 14:04:44 +00:00
|
|
|
sha256 = "178f4ce988f69189f7e523337a3e11d91c786ded9360174a3d9ca83e79bc5396";
|
2017-10-29 12:31:17 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
checkInputs = [ glibcLocales pytest mock ];
|
2020-12-11 11:09:48 +00:00
|
|
|
propagatedBuildInputs = [ ipython_genutils decorator six ];
|
2017-10-29 12:31:17 +00:00
|
|
|
|
|
|
|
checkPhase = ''
|
2018-05-10 05:16:18 +00:00
|
|
|
LC_ALL="en_US.UTF-8" py.test
|
2017-10-29 12:31:17 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Traitlets Python config system";
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "http://ipython.org/";
|
2017-10-29 12:31:17 +00:00
|
|
|
license = lib.licenses.bsd3;
|
|
|
|
maintainers = with lib.maintainers; [ fridh ];
|
|
|
|
};
|
2020-04-01 01:11:51 +00:00
|
|
|
}
|