summary refs log tree commit diff
path: root/pkgs/development/python-modules/python-jose/default.nix
blob: c1472bc66a8ec99a4fe357ddf416591ae767a6cd (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
{ stdenv, buildPythonPackage, fetchFromGitHub
, future, six, ecdsa, pycryptodome, pytest
}:

buildPythonPackage rec {
  pname = "python-jose";
  name = "${pname}-${version}";
  version = "1.3.2";
  src = fetchFromGitHub {
    owner = "mpdavis";
    repo = "python-jose";
    rev = version;
    sha256 = "0933pbflv2pvws5m0ksz8y1fqr8m123smmrbr5k9a71nssd502sv";
  };

  buildInputs = [ pytest ];
  checkPhase = "py.test .";
  patches = [
    # to use pycryptodme instead of pycrypto
    ./pycryptodome.patch
  ];
  propagatedBuildInputs = [ future six ecdsa pycryptodome ];
  meta = with stdenv.lib; {
    homepage = "https://github.com/mpdavis/python-jose";
    description = "A JOSE implementation in Python";
    platforms = platforms.all;
    license = licenses.mit;
    maintainers = [ maintainers.jhhuh ];
  };
}