2021-12-06 16:07:01 +00:00
|
|
|
{ lib
|
|
|
|
, asttokens
|
|
|
|
, buildPythonPackage
|
|
|
|
, executing
|
2022-12-17 10:02:37 +00:00
|
|
|
, hatchling
|
2021-12-06 16:07:01 +00:00
|
|
|
, fetchFromGitHub
|
|
|
|
, pygments
|
|
|
|
, pytest-mock
|
|
|
|
, pytestCheckHook
|
|
|
|
, pythonOlder
|
|
|
|
}:
|
2021-07-24 12:14:16 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "devtools";
|
2022-12-17 10:02:37 +00:00
|
|
|
version = "0.10.0";
|
|
|
|
format = "pyproject";
|
2021-12-06 16:07:01 +00:00
|
|
|
|
2022-12-17 10:02:37 +00:00
|
|
|
disabled = pythonOlder "3.7";
|
2021-07-24 12:14:16 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "samuelcolvin";
|
|
|
|
repo = "python-${pname}";
|
|
|
|
rev = "v${version}";
|
2022-12-17 10:02:37 +00:00
|
|
|
sha256 = "sha256-x9dL/FE94OixMAmjnmfzZUcYJBqE5P2AAIFsNJF0Fxo=";
|
2021-07-24 12:14:16 +00:00
|
|
|
};
|
|
|
|
|
2022-12-17 10:02:37 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
hatchling
|
|
|
|
];
|
|
|
|
|
2021-12-06 16:07:01 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
asttokens
|
|
|
|
executing
|
|
|
|
pygments
|
|
|
|
];
|
|
|
|
|
|
|
|
checkInputs = [
|
|
|
|
pytestCheckHook
|
|
|
|
pytest-mock
|
|
|
|
];
|
2021-07-24 12:14:16 +00:00
|
|
|
|
2022-04-15 01:41:22 +00:00
|
|
|
pytestFlagsArray = [
|
|
|
|
# pytest.PytestRemovedIn8Warning: Passing None has been deprecated.
|
|
|
|
"-W ignore::pytest.PytestRemovedIn8Warning"
|
|
|
|
];
|
|
|
|
|
2021-12-06 16:07:01 +00:00
|
|
|
disabledTests = [
|
|
|
|
# Test for Windows32
|
|
|
|
"test_print_subprocess"
|
2022-01-13 20:06:32 +00:00
|
|
|
# sensitive to timing
|
|
|
|
"test_multiple_not_verbose"
|
2022-04-15 01:41:22 +00:00
|
|
|
# sensitive to interpreter output
|
|
|
|
"test_simple_vars"
|
2021-12-06 16:07:01 +00:00
|
|
|
];
|
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 ];
|
|
|
|
};
|
|
|
|
}
|