889482aab3
GitOrigin-RevId: f2537a505d45c31fe5d9c27ea9829b6f4c4e6ac5
36 lines
671 B
Nix
36 lines
671 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, cryptography
|
|
, pytestCheckHook
|
|
, pythonOlder
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "pyjwt";
|
|
version = "2.4.0";
|
|
disabled = pythonOlder "3.6";
|
|
|
|
src = fetchPypi {
|
|
pname = "PyJWT";
|
|
inherit version;
|
|
sha256 = "sha256-1CkIIIxpmzuXPL6wGpabpqlsgh7vscW/5MOQwB1nq7o=";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
cryptography
|
|
];
|
|
|
|
checkInputs = [
|
|
pytestCheckHook
|
|
];
|
|
|
|
pythonImportsCheck = [ "jwt" ];
|
|
|
|
meta = with lib; {
|
|
description = "JSON Web Token implementation in Python";
|
|
homepage = "https://github.com/jpadilla/pyjwt";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ prikhi ];
|
|
};
|
|
}
|