2021-03-27 00:28:18 +00:00
|
|
|
{ lib
|
|
|
|
, fetchPypi
|
|
|
|
, buildPythonPackage
|
2018-03-20 21:25:02 +00:00
|
|
|
, cryptography
|
2021-03-27 00:28:18 +00:00
|
|
|
, pyopenssl
|
|
|
|
, setuptools
|
2021-02-12 00:26:16 +00:00
|
|
|
, mock
|
|
|
|
, pytestCheckHook
|
2018-03-20 21:25:02 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "josepy";
|
2021-03-24 09:28:15 +00:00
|
|
|
version = "1.8.0";
|
2018-03-20 21:25:02 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-03-24 09:28:15 +00:00
|
|
|
sha256 = "a5a182eb499665d99e7ec54bb3fe389f9cbc483d429c9651f20384ba29564269";
|
2018-03-20 21:25:02 +00:00
|
|
|
};
|
|
|
|
|
2021-02-12 00:26:16 +00:00
|
|
|
postPatch = ''
|
|
|
|
# remove coverage flags
|
|
|
|
sed -i '/addopts/d' pytest.ini
|
2021-03-27 00:28:18 +00:00
|
|
|
sed -i '/flake8-ignore/d' pytest.ini
|
2021-02-12 00:26:16 +00:00
|
|
|
'';
|
|
|
|
|
2018-03-20 21:25:02 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
pyopenssl
|
|
|
|
cryptography
|
|
|
|
setuptools
|
|
|
|
];
|
|
|
|
|
2021-02-12 00:26:16 +00:00
|
|
|
checkInputs = [
|
|
|
|
mock
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
2018-03-20 21:25:02 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "JOSE protocol implementation in Python";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/jezdez/josepy";
|
2018-03-20 21:25:02 +00:00
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ ];
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|