trash-cli: 0.21.4.18 -> 0.21.5.11

Also use `pytestCheckHook`.
This commit is contained in:
Robert Helgesson 2021-05-15 19:23:02 +02:00
parent 73e0dd4b29
commit 226863905b

View file

@ -2,27 +2,24 @@
python3Packages.buildPythonApplication rec {
pname = "trash-cli";
version = "0.21.4.18";
version = "0.21.5.11";
src = fetchFromGitHub {
owner = "andreafrancia";
repo = "trash-cli";
rev = version;
sha256 = "16xmg2d9rfmm5l1dxj3dydijpv3kwswrqsbj1sihyyka4s915g61";
sha256 = "0ifv717ywq2y0s6m9rkry1fnsr3mg9n2b2zcwaf9r5cxpw90bmym";
};
propagatedBuildInputs = [ python3Packages.psutil ];
checkInputs = with python3Packages; [
mock
pytest
pytestCheckHook
];
# Run tests, skipping `test_user_specified` since its result depends on the
# mount path.
checkPhase = ''
pytest -k 'not test_user_specified'
'';
# Skip `test_user_specified` since its result depends on the mount path.
disabledTests = [ "test_user_specified" ];
meta = with lib; {
homepage = "https://github.com/andreafrancia/trash-cli";