pythonPackages.w3lib: disable broken test, switch to pytestCheckHook, cleanup

This commit is contained in:
Sandro Jäckel 2021-03-03 14:24:34 +01:00
parent 7738719171
commit 5d14b8fa53
No known key found for this signature in database
GPG Key ID: 3AF5A43A3EECC2E5

View File

@ -2,7 +2,7 @@
, buildPythonPackage
, fetchPypi
, six
, pytest
, pytestCheckHook
}:
buildPythonPackage rec {
@ -14,7 +14,14 @@ buildPythonPackage rec {
sha256 = "1pv02lvvmgz2qb61vz1jkjc04fgm4hpfvaj5zm4i3mjp64hd1mha";
};
buildInputs = [ six pytest ];
propagatedBuildInputs = [ six ];
checkInputs = [ pytestCheckHook ];
pythonImportsCheck = [ "w3lib" ];
disabledTests = [
"test_add_or_replace_parameter"
];
meta = with lib; {
description = "A library of web-related functions";
@ -22,5 +29,4 @@ buildPythonPackage rec {
license = licenses.bsd3;
maintainers = with maintainers; [ drewkett ];
};
}