1{ stdenv, buildPythonPackage, fetchFromGitHub
2, future, six, ecdsa, rsa
3, pycrypto, pytestcov, pytestrunner, cryptography
4, pytestCheckHook
5}:
6
7buildPythonPackage rec {
8 pname = "python-jose";
9 version = "3.1.0";
10
11 src = fetchFromGitHub {
12 owner = "mpdavis";
13 repo = "python-jose";
14 rev = version;
15 sha256 = "1gnn0zy03pywj65ammy3sd07knzhjv8n5jhx1ir9bikgra9v0iqh";
16 };
17
18 checkInputs = [
19 pycrypto
20 pytestCheckHook
21 pytestcov
22 pytestrunner
23 cryptography # optional dependency, but needed in tests
24 ];
25
26 disabledTests = [
27 # https://github.com/mpdavis/python-jose/issues/176
28 "test_key_too_short"
29 ];
30
31 propagatedBuildInputs = [ future six ecdsa rsa ];
32
33 meta = with stdenv.lib; {
34 homepage = "https://github.com/mpdavis/python-jose";
35 description = "A JOSE implementation in Python";
36 license = licenses.mit;
37 maintainers = [ maintainers.jhhuh ];
38 };
39}