nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 pythonAtLeast,
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 pyproject = true;
20
21 src = fetchFromGitHub {
22 owner = "ipython";
23 repo = "traitlets";
24 tag = "v${version}";
25 hash = "sha256-lWtgzXW1ffzl1jkFaq99X0dU8agulUMHaghsYKX+8Dk=";
26 };
27
28 build-system = [ 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 # https://github.com/ipython/traitlets/issues/925
40 "test_complete_simple_app"
41 "test_complete_subcommands_subapp1"
42 ];
43
44 disabledTestPaths = [
45 # requires mypy-testing
46 "tests/test_typing.py"
47 ];
48
49 meta = {
50 changelog = "https://github.com/ipython/traitlets/blob/v${version}/CHANGELOG.md";
51 description = "Traitlets Python config system";
52 homepage = "https://github.com/ipython/traitlets";
53 license = lib.licenses.bsd3;
54 };
55}