f34ce41345
GitOrigin-RevId: b73c2221a46c13557b1b3be9c2070cc42cf01eb3
52 lines
968 B
Nix
52 lines
968 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchPypi,
|
|
pythonOlder,
|
|
|
|
# build-system
|
|
hatchling,
|
|
|
|
# tests
|
|
argcomplete,
|
|
pytest-mock,
|
|
pytestCheckHook,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "traitlets";
|
|
version = "5.14.3";
|
|
format = "pyproject";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-ntBXnTUCyUtLNzKsEgN1zalvkjEUUihH3ks7uYuWtrc=";
|
|
};
|
|
|
|
nativeBuildInputs = [ hatchling ];
|
|
|
|
nativeCheckInputs = [
|
|
argcomplete
|
|
pytest-mock
|
|
pytestCheckHook
|
|
];
|
|
|
|
disabledTests = [
|
|
# https://github.com/ipython/traitlets/issues/902
|
|
"test_complete_custom_completers"
|
|
];
|
|
|
|
disabledTestPaths = [
|
|
# requires mypy-testing
|
|
"tests/test_typing.py"
|
|
];
|
|
|
|
meta = {
|
|
changelog = "https://github.com/ipython/traitlets/blob/v${version}/CHANGELOG.md";
|
|
description = "Traitlets Python config system";
|
|
homepage = "https://github.com/ipython/traitlets";
|
|
license = lib.licenses.bsd3;
|
|
};
|
|
}
|