python3Packages.josepy: cleanup

This commit is contained in:
Fabian Affolter 2022-01-15 09:01:13 +01:00 committed by Martin Weinelt
parent 93acc1fd8d
commit 46eef09d3c

View File

@ -1,28 +1,25 @@
{ lib
, fetchPypi
, buildPythonPackage
, cryptography
, fetchPypi
, pyopenssl
, setuptools
, mock
, pytestCheckHook
, pythonOlder
, setuptools
}:
buildPythonPackage rec {
pname = "josepy";
version = "1.12.0";
format = "setuptools";
disabled = pythonOlder "3.6";
src = fetchPypi {
inherit pname version;
sha256 = "267004a64f08c016cd54b7aaf7c323fa3ef3679fb62f4b086cd56448d0fecb25";
};
postPatch = ''
# remove coverage flags
sed -i '/addopts/d' pytest.ini
sed -i '/flake8-ignore/d' pytest.ini
'';
propagatedBuildInputs = [
pyopenssl
cryptography
@ -30,15 +27,22 @@ buildPythonPackage rec {
];
checkInputs = [
mock
pytestCheckHook
];
postPatch = ''
substituteInPlace pytest.ini \
--replace " --flake8 --cov-report xml --cov-report=term-missing --cov=josepy --cov-config .coveragerc" ""
'';
pythonImportsCheck = [
"josepy"
];
meta = with lib; {
description = "JOSE protocol implementation in Python";
homepage = "https://github.com/jezdez/josepy";
license = licenses.asl20;
maintainers = with maintainers; [ ];
maintainers = with maintainers; [ ];
};
}