1{ lib
2, buildPythonPackage
3, cryptography
4, fetchPypi
5, pyopenssl
6, pytestCheckHook
7, pythonOlder
8, setuptools
9}:
10
11buildPythonPackage rec {
12 pname = "josepy";
13 version = "1.13.0";
14 format = "setuptools";
15
16 disabled = pythonOlder "3.6";
17
18 src = fetchPypi {
19 inherit pname version;
20 sha256 = "sha256-iTHa84+KTIUnSg6LfLJa3f2NHyj5+4++0FPdUa7HXck=";
21 };
22
23 propagatedBuildInputs = [
24 pyopenssl
25 cryptography
26 setuptools
27 ];
28
29 checkInputs = [
30 pytestCheckHook
31 ];
32
33 postPatch = ''
34 substituteInPlace pytest.ini \
35 --replace " --flake8 --cov-report xml --cov-report=term-missing --cov=josepy --cov-config .coveragerc" ""
36 sed -i '/flake8-ignore/d' pytest.ini
37 '';
38
39 pythonImportsCheck = [
40 "josepy"
41 ];
42
43 meta = with lib; {
44 description = "JOSE protocol implementation in Python";
45 homepage = "https://github.com/jezdez/josepy";
46 license = licenses.asl20;
47 maintainers = with maintainers; [ ];
48 };
49}