mirror of
https://github.com/CHN-beta/nixpkgs.git
synced 2026-01-13 19:43:02 +08:00
This commit was created by a combination of scripts and tools: - an ast-grep script to prefix things in meta with `lib.`, - a modified nixf-diagnose / nixf combination to remove unused `with lib;`, and - regular nixfmt. Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
48 lines
1010 B
Nix
48 lines
1010 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
docutils,
|
|
fetchFromGitHub,
|
|
pytestCheckHook,
|
|
setuptools,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "python-toolbox";
|
|
version = "1.3.1";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "cool-RR";
|
|
repo = "python_toolbox";
|
|
tag = version;
|
|
hash = "sha256-pbo4vhypM97OXh6CxK42EbZdrXljvj5rmP9C9RDPo5g=";
|
|
};
|
|
|
|
build-system = [ setuptools ];
|
|
|
|
nativeCheckInputs = [
|
|
docutils
|
|
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"
|
|
];
|
|
|
|
disabledTests = [
|
|
# AssertionError
|
|
"test_repr"
|
|
];
|
|
|
|
meta = {
|
|
description = "Tools for testing PySnooper";
|
|
homepage = "https://github.com/cool-RR/python_toolbox";
|
|
changelog = "https://github.com/cool-RR/python_toolbox/releases/tag/${src.tag}";
|
|
license = lib.licenses.mit;
|
|
maintainers = with lib.maintainers; [ seqizz ];
|
|
};
|
|
}
|