depot/third_party/nixpkgs/pkgs/development/python-modules/traitlets/default.nix
Default email 587713944a Project import generated by Copybara.
GitOrigin-RevId: 6143fc5eeb9c4f00163267708e26191d1e918932
2024-04-21 17:54:59 +02:00

54 lines
1,011 B
Nix

{ lib
, buildPythonPackage
, fetchPypi
, pythonOlder
# build-system
, hatchling
# tests
, argcomplete
, pytest-mock
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "traitlets";
version = "5.14.1";
format = "pyproject";
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
hash = "sha256-hYUQWzcaBLgxakPVzinAmFdcLkd4ULYrhIuWTxREUn4=";
};
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;
maintainers = with lib.maintainers; [ fridh ];
};
}