@@ -0,0 +1,29 @@
1+{ stdenv, buildPythonPackage, fetchFromGitHub
2+, future, six, ecdsa, pycryptodome, pytest
3+}:
4+
5+buildPythonPackage rec {
6+ name = "python-jose-${version}";
7+ version = "1.3.2";
8+ src = fetchFromGitHub {
9+ owner = "mpdavis";
10+ repo = "python-jose";
11+ rev = version;
12+ sha256 = "0933pbflv2pvws5m0ksz8y1fqr8m123smmrbr5k9a71nssd502sv";
13+ };
14+
15+ buildInputs = [ pytest ];
16+ checkPhase = "py.test .";
17+ patches = [
18+ # to use pycryptodme instead of pycrypto
19+ ./pycryptodome.patch
20+ ];
21+ propagatedBuildInputs = [ future six ecdsa pycryptodome ];
22+ meta = with stdenv.lib; {
23+ homepage = "https://github.com/mpdavis/python-jose";
24+ description = "A JOSE implementation in Python";
25+ platforms = platforms.all;
26+ license = licenses.mit;
27+ maintainers = [ maintainers.jhhuh ];
28+ };
29+}