pythonPackages.rfc3986: Add extra dependencies, switch to pytestCheckHook

This commit is contained in:
Sandro Jäckel 2021-01-06 00:15:27 +01:00
parent 88f5cef41d
commit 57e4280160
No known key found for this signature in database
GPG Key ID: 3AF5A43A3EECC2E5

View File

@ -1,5 +1,4 @@
{ stdenv, buildPythonPackage, fetchPypi, { stdenv, buildPythonPackage, fetchPypi, idna, pytestCheckHook }:
pytest }:
buildPythonPackage rec { buildPythonPackage rec {
pname = "rfc3986"; pname = "rfc3986";
@ -10,14 +9,14 @@ buildPythonPackage rec {
sha256 = "17dvx15m3r49bmif5zlli8kzjd6bys6psixzbp14sd5367d9h8qi"; sha256 = "17dvx15m3r49bmif5zlli8kzjd6bys6psixzbp14sd5367d9h8qi";
}; };
checkInputs = [ pytest ]; propagatedBuildInputs = [ idna ];
checkPhase = ''
pytest checkInputs = [ pytestCheckHook ];
'';
meta = with stdenv.lib; { meta = with stdenv.lib; {
description = "Validating URI References per RFC 3986";
homepage = "https://rfc3986.readthedocs.org"; homepage = "https://rfc3986.readthedocs.org";
license = licenses.asl20; license = licenses.asl20;
description = "Validating URI References per RFC 3986"; maintainers = with maintainers; [ SuperSandro2000 ];
}; };
} }