Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib 2, asttokens 3, buildPythonPackage 4, executing 5, hatchling 6, fetchFromGitHub 7, pygments 8, pytest-mock 9, pytestCheckHook 10, pythonOlder 11}: 12 13buildPythonPackage rec { 14 pname = "devtools"; 15 version = "0.10.0"; 16 format = "pyproject"; 17 18 disabled = pythonOlder "3.7"; 19 20 src = fetchFromGitHub { 21 owner = "samuelcolvin"; 22 repo = "python-${pname}"; 23 rev = "v${version}"; 24 hash = "sha256-x9dL/FE94OixMAmjnmfzZUcYJBqE5P2AAIFsNJF0Fxo="; 25 }; 26 27 nativeBuildInputs = [ 28 hatchling 29 ]; 30 31 propagatedBuildInputs = [ 32 asttokens 33 executing 34 pygments 35 ]; 36 37 nativeCheckInputs = [ 38 pytestCheckHook 39 pytest-mock 40 ]; 41 42 pytestFlagsArray = [ 43 # pytest.PytestRemovedIn8Warning: Passing None has been deprecated. 44 "-W ignore::pytest.PytestRemovedIn8Warning" 45 ]; 46 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_vars" 54 ]; 55 56 pythonImportsCheck = [ 57 "devtools" 58 ]; 59 60 meta = with lib; { 61 description = "Python's missing debug print command and other development tools"; 62 homepage = "https://python-devtools.helpmanual.io/"; 63 changelog = "https://github.com/samuelcolvin/python-devtools/releases/tag/v${version}"; 64 license = licenses.mit; 65 maintainers = with maintainers; [ jdahm ]; 66 }; 67}