2021-04-26 19:14:03 +00:00
|
|
|
{ lib
|
|
|
|
, fetchPypi
|
|
|
|
, buildPythonPackage
|
2020-04-24 23:36:52 +00:00
|
|
|
, cryptography
|
2021-04-26 19:14:03 +00:00
|
|
|
, pyopenssl
|
|
|
|
, setuptools
|
2021-02-13 14:23:35 +00:00
|
|
|
, mock
|
|
|
|
, pytestCheckHook
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "josepy";
|
2021-12-06 16:07:01 +00:00
|
|
|
version = "1.10.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-12-06 16:07:01 +00:00
|
|
|
sha256 = "e9bcaf605411cadaec04841ae2d5f77ebb178b7b6df7c9aed1d97399ac18685b";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-02-13 14:23:35 +00:00
|
|
|
postPatch = ''
|
|
|
|
# remove coverage flags
|
|
|
|
sed -i '/addopts/d' pytest.ini
|
2021-04-26 19:14:03 +00:00
|
|
|
sed -i '/flake8-ignore/d' pytest.ini
|
2021-02-13 14:23:35 +00:00
|
|
|
'';
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
pyopenssl
|
|
|
|
cryptography
|
|
|
|
setuptools
|
|
|
|
];
|
|
|
|
|
2021-02-13 14:23:35 +00:00
|
|
|
checkInputs = [
|
|
|
|
mock
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "JOSE protocol implementation in Python";
|
|
|
|
homepage = "https://github.com/jezdez/josepy";
|
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ ];
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|