2018-03-20 21:25:02 +00:00
|
|
|
{ lib, fetchPypi, buildPythonPackage
|
|
|
|
# buildInputs
|
|
|
|
, six
|
|
|
|
, setuptools
|
|
|
|
, pyopenssl
|
|
|
|
, cryptography
|
2021-02-12 00:26:16 +00:00
|
|
|
, mock
|
|
|
|
, pytestCheckHook
|
2018-03-20 21:25:02 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "josepy";
|
2021-02-13 21:42:00 +00:00
|
|
|
version = "1.7.0";
|
2018-03-20 21:25:02 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-02-13 21:42:00 +00:00
|
|
|
sha256 = "d265414fa16d7a8b7a1d1833b4ebb19a22bd0deae5d44413cf9040fd8491d85a";
|
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
|
|
|
|
'';
|
|
|
|
|
2018-03-20 21:25:02 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
pyopenssl
|
|
|
|
cryptography
|
|
|
|
six
|
|
|
|
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; [ ];
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|