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