python.pkgs.pyjwt: 1.5.3 -> 1.6.4

This commit is contained in:
Robert Schütz 2018-08-21 01:33:44 +02:00 committed by Robin Gloster
parent 080b8cca17
commit 5786cba889
2 changed files with 25 additions and 29 deletions

View file

@ -0,0 +1,24 @@
{ lib, buildPythonPackage, fetchPypi
, cryptography, ecdsa
, pytestrunner, pytestcov, pytest }:
buildPythonPackage rec {
pname = "PyJWT";
version = "1.6.4";
src = fetchPypi {
inherit pname version;
sha256 = "4ee413b357d53fd3fb44704577afac88e72e878716116270d722723d65b42176";
};
propagatedBuildInputs = [ cryptography ecdsa ];
checkInputs = [ pytestrunner pytestcov pytest ];
meta = with lib; {
description = "JSON Web Token implementation in Python";
homepage = https://github.com/jpadilla/pyjwt;
license = licenses.mit;
maintainers = with maintainers; [ prikhi ];
};
}

View file

@ -10667,35 +10667,7 @@ in {
};
};
pyjwt = buildPythonPackage rec {
version = "1.5.3";
name = "pyjwt-${version}";
src = pkgs.fetchFromGitHub {
owner = "progrium";
repo = "pyjwt";
rev = version;
sha256 = "109zb3ka2lvp00r9nawa0lmljfikvhcj5yny19kcipz8mqia1gs8";
};
buildInputs = with self; [ pytestrunner pytestcov pytest coverage ];
propagatedBuildInputs = with self; [ cryptography ecdsa ];
# We don't need this specific version
postPatch = ''
substituteInPlace setup.py --replace "pytest==2.7.3" "pytest"
'';
meta = {
description = "JSON Web Token implementation in Python";
longDescription = "A Python implementation of JSON Web Token draft 01";
homepage = https://github.com/progrium/pyjwt;
downloadPage = https://github.com/progrium/pyjwt/releases;
license = licenses.mit;
maintainers = with maintainers; [ prikhi ];
platforms = platforms.unix;
};
};
pyjwt = callPackage ../development/python-modules/pyjwt { };
pykickstart = buildPythonPackage rec {
name = "pykickstart-${version}";