My personal project and infrastructure archive
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
nomicon/pkgs/development/python-modules/pyjwt/default.nix

40 lines
717 B

{ lib
, buildPythonPackage
, fetchPypi
, cryptography
, ecdsa
, pytest-cov
, pytestCheckHook
, pythonOlder
}:
buildPythonPackage rec {
pname = "pyjwt";
version = "2.3.0";
disabled = pythonOlder "3.6";
src = fetchPypi {
pname = "PyJWT";
inherit version;
sha256 = "sha256-uIi01W8G9tzXdyEMM05pxze+dHVdPl6e4/5n3Big7kE=";
};
propagatedBuildInputs = [
cryptography
ecdsa
];
checkInputs = [
pytest-cov
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 ];
};
}