2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
docutils,
|
|
|
|
fetchFromGitHub,
|
|
|
|
pytestCheckHook,
|
2024-10-11 05:15:48 +00:00
|
|
|
pythonOlder,
|
|
|
|
setuptools,
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2024-10-11 05:15:48 +00:00
|
|
|
pname = "python-toolbox";
|
|
|
|
version = "1.0.11";
|
|
|
|
pyproject = true;
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.9";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "cool-RR";
|
2024-10-11 05:15:48 +00:00
|
|
|
repo = "python_toolbox";
|
|
|
|
rev = "refs/tags/${version}";
|
|
|
|
hash = "sha256-Y9RmVndgsBESrUCEORUwAdaFYBiunY3kWArhB9d7bw4=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2024-10-11 05:15:48 +00:00
|
|
|
build-system = [ setuptools ];
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2020-04-24 23:36:52 +00:00
|
|
|
docutils
|
2021-05-20 23:08:51 +00:00
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
|
|
|
disabledTestPaths = [
|
|
|
|
# file imports 'dummy_threading', which was deprecated since py37
|
|
|
|
# and removed in py39
|
|
|
|
"test_python_toolbox/test_cute_profile/test_cute_profile.py"
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
2024-10-11 05:15:48 +00:00
|
|
|
disabledTests = [
|
|
|
|
# AssertionError
|
|
|
|
"test_repr"
|
|
|
|
];
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
meta = with lib; {
|
|
|
|
description = "Tools for testing PySnooper";
|
|
|
|
homepage = "https://github.com/cool-RR/python_toolbox";
|
2024-10-11 05:15:48 +00:00
|
|
|
changelog = "https://github.com/cool-RR/python_toolbox/releases/tag/${version}";
|
2020-04-24 23:36:52 +00:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ seqizz ];
|
|
|
|
};
|
|
|
|
}
|