nixpkgs/pkgs/development/python-modules/python-toolbox/default.nix
Guillaume Girol 33afbf39f6 treewide: switch to nativeCheckInputs
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.
2023-01-21 12:00:00 +00:00

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 ];
};
}