2020-04-24 23:36:52 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, glibcLocales
|
|
|
|
, pytest
|
|
|
|
, mock
|
|
|
|
, ipython_genutils
|
|
|
|
, decorator
|
|
|
|
, pythonOlder
|
|
|
|
, six
|
2022-08-12 12:06:08 +00:00
|
|
|
, hatchling
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "traitlets";
|
2023-01-20 10:41:00 +00:00
|
|
|
version = "5.8.0";
|
2022-08-12 12:06:08 +00:00
|
|
|
format = "pyproject";
|
2020-12-25 13:55:36 +00:00
|
|
|
disabled = pythonOlder "3.7";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2023-01-20 10:41:00 +00:00
|
|
|
sha256 = "sha256-bMV9bcKMhdU2WWFyb/0ZtThzk0d0nhPr404DMjoOj4Q=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2022-08-12 12:06:08 +00:00
|
|
|
nativeBuildInputs = [ hatchling ];
|
2020-04-24 23:36:52 +00:00
|
|
|
checkInputs = [ glibcLocales pytest mock ];
|
2020-12-25 13:55:36 +00:00
|
|
|
propagatedBuildInputs = [ ipython_genutils decorator six ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
LC_ALL="en_US.UTF-8" py.test
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Traitlets Python config system";
|
|
|
|
homepage = "http://ipython.org/";
|
|
|
|
license = lib.licenses.bsd3;
|
|
|
|
maintainers = with lib.maintainers; [ fridh ];
|
|
|
|
};
|
|
|
|
}
|