mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-22 21:53:32 +00:00
d515fcf049
This reverts commit b56bd9afcc
.
41 lines
717 B
Nix
41 lines
717 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, cryptography
|
|
, ecdsa
|
|
, pytest-cov
|
|
, pytestCheckHook
|
|
, pythonOlder
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "pyjwt";
|
|
version = "2.1.0";
|
|
disabled = pythonOlder "3.6";
|
|
|
|
src = fetchPypi {
|
|
pname = "PyJWT";
|
|
inherit version;
|
|
sha256 = "sha256-+6ROeJi7yhYKKytQH0koJPyDgkhdOm8Rul0MGTfOYTA=";
|
|
};
|
|
|
|
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 ];
|
|
};
|
|
}
|