1{
2 lib,
3 buildPythonPackage,
4 fetchPypi,
5 pythonOlder,
6
7 # build-system
8 hatchling,
9
10 # tests
11 argcomplete,
12 pytest-mock,
13 pytestCheckHook,
14}:
15
16buildPythonPackage rec {
17 pname = "traitlets";
18 version = "5.14.3";
19 format = "pyproject";
20
21 disabled = pythonOlder "3.7";
22
23 src = fetchPypi {
24 inherit pname version;
25 hash = "sha256-ntBXnTUCyUtLNzKsEgN1zalvkjEUUihH3ks7uYuWtrc=";
26 };
27
28 nativeBuildInputs = [ hatchling ];
29
30 nativeCheckInputs = [
31 argcomplete
32 pytest-mock
33 pytestCheckHook
34 ];
35
36 disabledTests = [
37 # https://github.com/ipython/traitlets/issues/902
38 "test_complete_custom_completers"
39 ];
40
41 disabledTestPaths = [
42 # requires mypy-testing
43 "tests/test_typing.py"
44 ];
45
46 meta = {
47 changelog = "https://github.com/ipython/traitlets/blob/v${version}/CHANGELOG.md";
48 description = "Traitlets Python config system";
49 homepage = "https://github.com/ipython/traitlets";
50 license = lib.licenses.bsd3;
51 };
52}