20 buildPythonPackage rec {
25 disabled = pythonOlder "3.7";
27 src = fetchFromGitHub {
31 hash = "sha256-KADS1pEaLYi86LEt2VVuz8FVTBANzxC8EeQLgGMxuBU=";
34 nativeBuildInputs = [ setuptools ];
36 optional-dependencies = {
37 rsa = [ cryptography ];
42 signals = [ blinker ];
48 ] ++ lib.flatten (lib.attrValues optional-dependencies);
51 # https://github.com/oauthlib/oauthlib/issues/877
55 pythonImportsCheck = [ "oauthlib" ];
67 changelog = "https://github.com/oauthlib/oauthlib/blob/${src.rev}/CHANGELOG.rst";
68 description = "Generic, spec-compliant, thorough implementation of the OAuth request-signing logic";
69 homepage = "https://github.com/oauthlib/oauthlib";
70 license = licenses.bsd3;
71 maintainers = with maintainers; [ prikhi ];