a0cb138ada
GitOrigin-RevId: a100acd7bbf105915b0004427802286c37738fef
47 lines
847 B
Nix
47 lines
847 B
Nix
{ lib
|
|
, blinker
|
|
, buildPythonPackage
|
|
, cryptography
|
|
, fetchFromGitHub
|
|
, mock
|
|
, pyjwt
|
|
, pytestCheckHook
|
|
, pythonOlder
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "oauthlib";
|
|
version = "3.2.2";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = pname;
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
hash = "sha256-KADS1pEaLYi86LEt2VVuz8FVTBANzxC8EeQLgGMxuBU=";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
blinker
|
|
cryptography
|
|
pyjwt
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
mock
|
|
pytestCheckHook
|
|
];
|
|
|
|
pythonImportsCheck = [
|
|
"oauthlib"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Generic, spec-compliant, thorough implementation of the OAuth request-signing logic";
|
|
homepage = "https://github.com/idan/oauthlib";
|
|
license = licenses.bsd3;
|
|
maintainers = with maintainers; [ prikhi ];
|
|
};
|
|
}
|