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