nixpkgs/pkgs/development/python-modules/pyjwt/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

41 lines
717 B
Nix
Raw Normal View History

2021-05-06 07:10:54 +00:00
{ lib
, buildPythonPackage
, fetchPypi
, cryptography
, ecdsa
, pytest-cov
, pytestCheckHook
, pythonOlder
}:
2018-08-20 23:33:44 +00:00
buildPythonPackage rec {
2021-05-06 07:17:02 +00:00
pname = "pyjwt";
2021-12-03 13:26:57 +00:00
version = "2.3.0";
2021-05-06 07:17:02 +00:00
disabled = pythonOlder "3.6";
2018-08-20 23:33:44 +00:00
src = fetchPypi {
2021-05-06 07:17:02 +00:00
pname = "PyJWT";
inherit version;
2021-12-03 13:26:57 +00:00
sha256 = "sha256-uIi01W8G9tzXdyEMM05pxze+dHVdPl6e4/5n3Big7kE=";
2018-08-20 23:33:44 +00:00
};
2021-05-06 07:10:54 +00:00
propagatedBuildInputs = [
cryptography
ecdsa
];
2018-08-20 23:33:44 +00:00
2021-05-06 07:10:54 +00:00
checkInputs = [
pytest-cov
pytestCheckHook
];
2018-08-20 23:33:44 +00:00
2021-05-06 07:10:54 +00:00
pythonImportsCheck = [ "jwt" ];
2019-10-17 06:16:09 +00:00
2018-08-20 23:33:44 +00:00
meta = with lib; {
description = "JSON Web Token implementation in Python";
homepage = "https://github.com/jpadilla/pyjwt";
2018-08-20 23:33:44 +00:00
license = licenses.mit;
maintainers = with maintainers; [ prikhi ];
};
}