python3Packages.josepy: enable tests

This commit is contained in:
Martin Weinelt 2021-02-12 01:26:16 +01:00
parent 77c7a14b60
commit c6f86adf51
No known key found for this signature in database
GPG Key ID: 87C1E9888F856759

View File

@ -4,6 +4,8 @@
, setuptools , setuptools
, pyopenssl , pyopenssl
, cryptography , cryptography
, mock
, pytestCheckHook
}: }:
buildPythonPackage rec { buildPythonPackage rec {
@ -15,6 +17,11 @@ buildPythonPackage rec {
sha256 = "0aab1c3ceffe045e7fd5bcfe7685e27e9d2758518d9ba7116b5de34087e70bf5"; sha256 = "0aab1c3ceffe045e7fd5bcfe7685e27e9d2758518d9ba7116b5de34087e70bf5";
}; };
postPatch = ''
# remove coverage flags
sed -i '/addopts/d' pytest.ini
'';
propagatedBuildInputs = [ propagatedBuildInputs = [
pyopenssl pyopenssl
cryptography cryptography
@ -22,8 +29,10 @@ buildPythonPackage rec {
setuptools setuptools
]; ];
# too many unpackaged check requirements checkInputs = [
doCheck = false; mock
pytestCheckHook
];
meta = with lib; { meta = with lib; {
description = "JOSE protocol implementation in Python"; description = "JOSE protocol implementation in Python";