Skip to content

Commit

Permalink
python2Packages.pyjwt: init at 1.7.1
Browse files Browse the repository at this point in the history
  • Loading branch information
mweinelt authored and Jonathan Ringer committed May 8, 2021
1 parent 08d94fd commit bf9b6b1
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 0 deletions.
38 changes: 38 additions & 0 deletions pkgs/development/python-modules/pyjwt/1.nix
Original file line number Diff line number Diff line change
@@ -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;
};
}
2 changes: 2 additions & 0 deletions pkgs/top-level/python2-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -433,6 +433,8 @@ with self; with super; {

pyhamcrest = callPackage ../development/python-modules/pyhamcrest/1.nix { };

pyjwt = callPackage ../development/python-modules/pyjwt/1.nix { };

pykickstart = callPackage ../development/python-modules/pykickstart { };

pylibacl = callPackage ../development/python-modules/pylibacl/0.5.nix { };
Expand Down

0 comments on commit bf9b6b1

Please sign in to comment.