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.

57 lines
1.0 KiB
Nix
Raw Normal View History

2021-05-06 07:10:54 +00:00
{ lib
, buildPythonPackage
, fetchPypi
, cryptography
, pytestCheckHook
, pythonOlder
, sphinxHook
, sphinx-rtd-theme
, zope_interface
2021-05-06 07:10:54 +00:00
}:
2018-08-20 23:33:44 +00:00
buildPythonPackage rec {
2021-05-06 07:17:02 +00:00
pname = "pyjwt";
2022-12-30 19:13:36 +00:00
version = "2.6.0";
format = "pyproject";
disabled = pythonOlder "3.7";
2018-08-20 23:33:44 +00:00
src = fetchPypi {
2021-05-06 07:17:02 +00:00
pname = "PyJWT";
inherit version;
2022-12-30 19:13:36 +00:00
sha256 = "sha256-aShcfjH8RPaKH+swnpSODfUyWdV5KV5s/isXkjKfBf0=";
2018-08-20 23:33:44 +00:00
};
postPatch = ''
sed -i '/types-cryptography/d' setup.cfg
'';
outputs = [
"out"
"doc"
];
nativeBuildInputs = [
sphinxHook
sphinx-rtd-theme
zope_interface
];
passthru.optional-dependencies.crypto = [
2021-05-06 07:10:54 +00:00
cryptography
];
2018-08-20 23:33:44 +00:00
nativeCheckInputs = [
2021-05-06 07:10:54 +00:00
pytestCheckHook
] ++ (lib.flatten (lib.attrValues passthru.optional-dependencies));
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 ];
};
}