python2Packages.pyjwt: init at 1.7.1
needed for NixOps
This commit is contained in:
parent
fcf88f377b
commit
8525e831a8
44
pkgs/development/python-modules/pyjwt/1.nix
Normal file
44
pkgs/development/python-modules/pyjwt/1.nix
Normal file
@ -0,0 +1,44 @@
|
||||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, cryptography
|
||||
, ecdsa
|
||||
, pytestCheckHook
|
||||
, pythonOlder
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "pyjwt";
|
||||
version = "1.7.1";
|
||||
|
||||
src = fetchPypi {
|
||||
pname = "PyJWT";
|
||||
inherit version;
|
||||
sha256 = "8d59a976fb773f3e6a39c85636357c4f0e242707394cadadd9814f5cbaa20e96";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
sed -i '/^addopts/d' setup.cfg
|
||||
'';
|
||||
|
||||
propagatedBuildInputs = [
|
||||
cryptography
|
||||
ecdsa
|
||||
];
|
||||
|
||||
checkInputs = [
|
||||
pytestCheckHook
|
||||
];
|
||||
|
||||
disabledTests = [
|
||||
"test_ec_verify_should_return_false_if_signature_invalid"
|
||||
];
|
||||
|
||||
pythonImportsCheck = [ "jwt" ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "JSON Web Token implementation in Python";
|
||||
homepage = "https://github.com/jpadilla/pyjwt";
|
||||
license = licenses.mit;
|
||||
};
|
||||
}
|
@ -457,6 +457,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 { };
|
||||
|
Loading…
Reference in New Issue
Block a user