diff options
author | Martin Weinelt <hexa@darmstadt.ccc.de> | 2021-05-08 02:53:01 +0200 |
---|---|---|
committer | Jonathan Ringer <jonringer@users.noreply.github.com> | 2021-05-07 20:05:56 -0700 |
commit | bf9b6b1ef3dffa6f08ed16003630e1ce94361c1e (patch) | |
tree | ff212c44c915d87a36fe1e9ab6e094112f80473e /pkgs/development/python-modules/pyjwt | |
parent | 08d94fd2b00e5d403e3a5aa80e52c0b940044ebf (diff) |
python2Packages.pyjwt: init at 1.7.1
Diffstat (limited to 'pkgs/development/python-modules/pyjwt')
-rw-r--r-- | pkgs/development/python-modules/pyjwt/1.nix | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/pyjwt/1.nix b/pkgs/development/python-modules/pyjwt/1.nix new file mode 100644 index 0000000000000..285e5e2e7600d --- /dev/null +++ b/pkgs/development/python-modules/pyjwt/1.nix @@ -0,0 +1,38 @@ +{ lib +, buildPythonPackage +, fetchPypi +, cryptography +, pytestCheckHook +}: + +buildPythonPackage rec { + pname = "PyJWT"; + version = "1.7.1"; + + src = fetchPypi { + inherit pname version; + sha256 = "15hflax5qkw1v6nssk1r0wkj83jgghskcmn875m3wgvpzdvajncd"; + }; + + postPatch = '' + substituteInPlace setup.py --replace "pytest>=4.0.1,<5.0.0" "pytest" + + # drop coverage + sed -i '/pytest-cov/d' setup.py + sed -i '/--cov/d' setup.cfg + ''; + + propagatedBuildInputs = [ + cryptography + ]; + + checkInputs = [ + pytestCheckHook + ]; + + meta = with lib; { + description = "JSON Web Token implementation in Python"; + homepage = "https://github.com/jpadilla/pyjwt"; + license = licenses.mit; + }; +} |