depot/third_party/nixpkgs/pkgs/development/python-modules/traitlets/default.nix
Default email fa5436e0a7 Project import generated by Copybara.
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
2024-06-05 17:53:02 +02:00

52 lines
968 B
Nix

{
lib,
buildPythonPackage,
fetchPypi,
pythonOlder,
# build-system
hatchling,
# tests
argcomplete,
pytest-mock,
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "traitlets";
version = "5.14.2";
format = "pyproject";
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
hash = "sha256-jN2DwEDat9He6CJnjl9dEAtRT3tysBYVsm/FcYkW/fk=";
};
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;
};
}