2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
asttokens,
|
|
|
|
buildPythonPackage,
|
|
|
|
executing,
|
|
|
|
hatchling,
|
|
|
|
fetchFromGitHub,
|
|
|
|
pygments,
|
|
|
|
pytest-mock,
|
|
|
|
pytestCheckHook,
|
|
|
|
pythonOlder,
|
2021-12-06 16:07:01 +00:00
|
|
|
}:
|
2021-07-24 12:14:16 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "devtools";
|
2023-11-16 04:20:00 +00:00
|
|
|
version = "0.12.2";
|
2022-12-17 10:02:37 +00:00
|
|
|
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}";
|
2023-08-10 07:59:29 +00:00
|
|
|
rev = "refs/tags/v${version}";
|
2023-11-16 04:20:00 +00:00
|
|
|
hash = "sha256-1HFbNswdKa/9cQX0Gf6lLW1V5Kt/N4X6/5kQDdzp1Wo=";
|
2021-07-24 12:14:16 +00:00
|
|
|
};
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
nativeBuildInputs = [ hatchling ];
|
2022-12-17 10:02:37 +00:00
|
|
|
|
2021-12-06 16:07:01 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
asttokens
|
|
|
|
executing
|
|
|
|
pygments
|
|
|
|
];
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2021-12-06 16:07:01 +00:00
|
|
|
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"
|
2023-08-10 07:59:29 +00:00
|
|
|
# Sensitive to timing
|
2022-01-13 20:06:32 +00:00
|
|
|
"test_multiple_not_verbose"
|
2023-08-10 07:59:29 +00:00
|
|
|
# Sensitive to interpreter output
|
|
|
|
"test_simple"
|
|
|
|
];
|
|
|
|
|
|
|
|
disabledTestPaths = [
|
|
|
|
# pytester_pretty is not available in Nixpkgs
|
|
|
|
"tests/test_insert_assert.py"
|
2021-12-06 16:07:01 +00:00
|
|
|
];
|
2021-07-24 12:14:16 +00:00
|
|
|
|
2024-06-05 15:53:02 +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/";
|
2023-01-20 10:41:00 +00:00
|
|
|
changelog = "https://github.com/samuelcolvin/python-devtools/releases/tag/v${version}";
|
2021-07-24 12:14:16 +00:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ jdahm ];
|
|
|
|
};
|
|
|
|
}
|