1{ lib 2, blinker 3, buildPythonPackage 4, cryptography 5, fetchFromGitHub 6, mock 7, pyjwt 8, pytestCheckHook 9, pythonOlder 10}: 11 12buildPythonPackage rec { 13 pname = "oauthlib"; 14 version = "3.2.1"; 15 format = "setuptools"; 16 17 disabled = pythonOlder "3.7"; 18 19 src = fetchFromGitHub { 20 owner = pname; 21 repo = pname; 22 rev = "v${version}"; 23 hash = "sha256-9Du0REnN7AkvMmejXsWc7Uy+YF8MYeLK+QnYHbrPhPA="; 24 }; 25 26 propagatedBuildInputs = [ 27 blinker 28 cryptography 29 pyjwt 30 ]; 31 32 checkInputs = [ 33 mock 34 pytestCheckHook 35 ]; 36 37 pythonImportsCheck = [ 38 "oauthlib" 39 ]; 40 41 meta = with lib; { 42 description = "Generic, spec-compliant, thorough implementation of the OAuth request-signing logic"; 43 homepage = "https://github.com/idan/oauthlib"; 44 license = licenses.bsd3; 45 maintainers = with maintainers; [ prikhi ]; 46 }; 47}