depot/third_party/nixpkgs/pkgs/development/python-modules/devtools/default.nix

62 lines
1.2 KiB
Nix
Raw Normal View History

{ lib
, asttokens
, buildPythonPackage
, executing
, fetchFromGitHub
, pygments
, pytest-mock
, pytestCheckHook
, pythonOlder
}:
buildPythonPackage rec {
pname = "devtools";
version = "0.8.0";
format = "setuptools";
disabled = pythonOlder "3.6";
src = fetchFromGitHub {
owner = "samuelcolvin";
repo = "python-${pname}";
rev = "v${version}";
sha256 = "0yavcbxzxi1nfa1k326gsl03y8sadi5z5acamwd8b1bsiv15p757";
};
propagatedBuildInputs = [
asttokens
executing
pygments
];
checkInputs = [
pytestCheckHook
pytest-mock
];
pytestFlagsArray = [
# pytest.PytestRemovedIn8Warning: Passing None has been deprecated.
"-W ignore::pytest.PytestRemovedIn8Warning"
];
disabledTests = [
# Test for Windows32
"test_print_subprocess"
# sensitive to timing
"test_multiple_not_verbose"
# sensitive to interpreter output
"test_simple_vars"
];
pythonImportsCheck = [
"devtools"
];
meta = with lib; {
description = "Python's missing debug print command and other development tools";
homepage = "https://python-devtools.helpmanual.io/";
license = licenses.mit;
maintainers = with maintainers; [ jdahm ];
};
}