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