mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-10 15:04:44 +00:00
33afbf39f6
checkInputs used to be added to nativeBuildInputs. Now we have nativeCheckInputs to do that instead. Doing this treewide change allows to keep hashes identical to before the introduction of nativeCheckInputs.
39 lines
812 B
Nix
39 lines
812 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, docutils
|
|
, fetchFromGitHub
|
|
, isPy27
|
|
, pytestCheckHook
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
version = "1.0.10";
|
|
pname = "python_toolbox";
|
|
disabled = isPy27;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "cool-RR";
|
|
repo = pname;
|
|
rev = version;
|
|
sha256 = "1hpls1hwisdjx1g15cq052bdn9fvh43r120llws8bvgvj9ivnaha";
|
|
};
|
|
|
|
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"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Tools for testing PySnooper";
|
|
homepage = "https://github.com/cool-RR/python_toolbox";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ seqizz ];
|
|
};
|
|
}
|