depot/third_party/nixpkgs/pkgs/development/python-modules/traitlets/default.nix
Default email 5c370c0b2a Project import generated by Copybara.
GitOrigin-RevId: 33d1e753c82ffc557b4a585c77de43d4c922ebb5
2024-05-15 17:35:15 +02:00

53 lines
960 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;
};
}