2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchPypi,
|
|
|
|
pythonOlder,
|
|
|
|
|
|
|
|
# build-system
|
|
|
|
hatchling,
|
|
|
|
|
|
|
|
# tests
|
|
|
|
argcomplete,
|
|
|
|
pytest-mock,
|
|
|
|
pytestCheckHook,
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "traitlets";
|
2024-07-27 06:49:29 +00:00
|
|
|
version = "5.14.3";
|
2022-08-12 12:06:08 +00:00
|
|
|
format = "pyproject";
|
2024-01-13 08:15:51 +00:00
|
|
|
|
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;
|
2024-07-27 06:49:29 +00:00
|
|
|
hash = "sha256-ntBXnTUCyUtLNzKsEgN1zalvkjEUUihH3ks7uYuWtrc=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
nativeBuildInputs = [ hatchling ];
|
2024-01-13 08:15:51 +00:00
|
|
|
|
|
|
|
nativeCheckInputs = [
|
|
|
|
argcomplete
|
|
|
|
pytest-mock
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
disabledTests = [
|
|
|
|
# https://github.com/ipython/traitlets/issues/902
|
|
|
|
"test_complete_custom_completers"
|
|
|
|
];
|
|
|
|
|
2024-01-13 08:15:51 +00:00
|
|
|
disabledTestPaths = [
|
|
|
|
# requires mypy-testing
|
|
|
|
"tests/test_typing.py"
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
meta = {
|
2024-01-13 08:15:51 +00:00
|
|
|
changelog = "https://github.com/ipython/traitlets/blob/v${version}/CHANGELOG.md";
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Traitlets Python config system";
|
2023-08-10 07:59:29 +00:00
|
|
|
homepage = "https://github.com/ipython/traitlets";
|
2020-04-24 23:36:52 +00:00
|
|
|
license = lib.licenses.bsd3;
|
|
|
|
};
|
|
|
|
}
|