1{ lib
2, asttokens
3, buildPythonPackage
4, executing
5, fetchFromGitHub
6, pygments
7, pytest-mock
8, pytestCheckHook
9, pythonOlder
10}:
11
12buildPythonPackage rec {
13 pname = "devtools";
14 version = "0.8.0";
15 format = "setuptools";
16
17 disabled = pythonOlder "3.6";
18
19 src = fetchFromGitHub {
20 owner = "samuelcolvin";
21 repo = "python-${pname}";
22 rev = "v${version}";
23 sha256 = "0yavcbxzxi1nfa1k326gsl03y8sadi5z5acamwd8b1bsiv15p757";
24 };
25
26 propagatedBuildInputs = [
27 asttokens
28 executing
29 pygments
30 ];
31
32 checkInputs = [
33 pytestCheckHook
34 pytest-mock
35 ];
36
37 pytestFlagsArray = [
38 # pytest.PytestRemovedIn8Warning: Passing None has been deprecated.
39 "-W ignore::pytest.PytestRemovedIn8Warning"
40 ];
41
42 disabledTests = [
43 # Test for Windows32
44 "test_print_subprocess"
45 # sensitive to timing
46 "test_multiple_not_verbose"
47 # sensitive to interpreter output
48 "test_simple_vars"
49 ];
50
51 pythonImportsCheck = [
52 "devtools"
53 ];
54
55 meta = with lib; {
56 description = "Python's missing debug print command and other development tools";
57 homepage = "https://python-devtools.helpmanual.io/";
58 license = licenses.mit;
59 maintainers = with maintainers; [ jdahm ];
60 };
61}