@@ -0,0 +1,29 @@
1+{ stdenv, buildPythonPackage, fetchFromGitHub
2+, future, six, ecdsa, pycryptodome, pytest
5+buildPythonPackage rec {
6+ name = "python-jose-${version}";
8+ src = fetchFromGitHub {
10+ repo = "python-jose";
12+ sha256 = "0933pbflv2pvws5m0ksz8y1fqr8m123smmrbr5k9a71nssd502sv";
15+ buildInputs = [ pytest ];
16+ checkPhase = "py.test .";
18+ # to use pycryptodme instead of pycrypto
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 ];