Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / python-modules / devtools / default.nix
blob08a5f2e7f50c6862e9ce32ec483de0ac1119fca9
1 { lib
2 , asttokens
3 , buildPythonPackage
4 , executing
5 , hatchling
6 , fetchFromGitHub
7 , pygments
8 , pytest-mock
9 , pytestCheckHook
10 , pythonOlder
13 buildPythonPackage rec {
14   pname = "devtools";
15   version = "0.12.2";
16   format = "pyproject";
18   disabled = pythonOlder "3.7";
20   src = fetchFromGitHub {
21     owner = "samuelcolvin";
22     repo = "python-${pname}";
23     rev = "refs/tags/v${version}";
24     hash = "sha256-1HFbNswdKa/9cQX0Gf6lLW1V5Kt/N4X6/5kQDdzp1Wo=";
25   };
27   nativeBuildInputs = [
28     hatchling
29   ];
31   propagatedBuildInputs = [
32     asttokens
33     executing
34     pygments
35   ];
37   nativeCheckInputs = [
38     pytestCheckHook
39     pytest-mock
40   ];
42   pytestFlagsArray = [
43     # pytest.PytestRemovedIn8Warning: Passing None has been deprecated.
44     "-W ignore::pytest.PytestRemovedIn8Warning"
45   ];
47   disabledTests = [
48     # Test for Windows32
49     "test_print_subprocess"
50     # Sensitive to timing
51     "test_multiple_not_verbose"
52     # Sensitive to interpreter output
53     "test_simple"
54   ];
56   disabledTestPaths = [
57     # pytester_pretty is not available in Nixpkgs
58     "tests/test_insert_assert.py"
59   ];
61   pythonImportsCheck = [
62     "devtools"
63   ];
65   meta = with lib; {
66     description = "Python's missing debug print command and other development tools";
67     homepage = "https://python-devtools.helpmanual.io/";
68     changelog = "https://github.com/samuelcolvin/python-devtools/releases/tag/v${version}";
69     license = licenses.mit;
70     maintainers = with maintainers; [ jdahm ];
71   };