1{ lib
2, fetchPypi
3, buildPythonPackage
4, cryptography
5, pyopenssl
6, setuptools
7, mock
8, pytestCheckHook
9}:
10
11buildPythonPackage rec {
12 pname = "josepy";
13 version = "1.8.0";
14
15 src = fetchPypi {
16 inherit pname version;
17 sha256 = "a5a182eb499665d99e7ec54bb3fe389f9cbc483d429c9651f20384ba29564269";
18 };
19
20 postPatch = ''
21 # remove coverage flags
22 sed -i '/addopts/d' pytest.ini
23 sed -i '/flake8-ignore/d' pytest.ini
24 '';
25
26 propagatedBuildInputs = [
27 pyopenssl
28 cryptography
29 setuptools
30 ];
31
32 checkInputs = [
33 mock
34 pytestCheckHook
35 ];
36
37 meta = with lib; {
38 description = "JOSE protocol implementation in Python";
39 homepage = "https://github.com/jezdez/josepy";
40 license = licenses.asl20;
41 maintainers = with maintainers; [ ];
42 };
43}
44