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