2021-12-06 16:07:01 +00:00
|
|
|
{ lib
|
|
|
|
, asttokens
|
|
|
|
, buildPythonPackage
|
|
|
|
, executing
|
|
|
|
, fetchFromGitHub
|
|
|
|
, pygments
|
|
|
|
, pytest-mock
|
|
|
|
, pytestCheckHook
|
|
|
|
, pythonOlder
|
|
|
|
}:
|
2021-07-24 12:14:16 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "devtools";
|
2021-12-06 16:07:01 +00:00
|
|
|
version = "0.8.0";
|
|
|
|
format = "setuptools";
|
|
|
|
|
2021-07-24 12:14:16 +00:00
|
|
|
disabled = pythonOlder "3.6";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "samuelcolvin";
|
|
|
|
repo = "python-${pname}";
|
|
|
|
rev = "v${version}";
|
2021-12-06 16:07:01 +00:00
|
|
|
sha256 = "0yavcbxzxi1nfa1k326gsl03y8sadi5z5acamwd8b1bsiv15p757";
|
2021-07-24 12:14:16 +00:00
|
|
|
};
|
|
|
|
|
2021-12-06 16:07:01 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
asttokens
|
|
|
|
executing
|
|
|
|
pygments
|
|
|
|
];
|
|
|
|
|
|
|
|
checkInputs = [
|
|
|
|
pytestCheckHook
|
|
|
|
pytest-mock
|
|
|
|
];
|
2021-07-24 12:14:16 +00:00
|
|
|
|
2021-12-06 16:07:01 +00:00
|
|
|
disabledTests = [
|
|
|
|
# Test for Windows32
|
|
|
|
"test_print_subprocess"
|
|
|
|
];
|
2021-07-24 12:14:16 +00:00
|
|
|
|
2021-12-06 16:07:01 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"devtools"
|
|
|
|
];
|
2021-07-24 12:14:16 +00:00
|
|
|
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|