My personal project and infrastructure archive
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
nomicon/pkgs/development/python-modules/oauthlib/default.nix

47 lines
841 B

{ lib
, blinker
, buildPythonPackage
, cryptography
, fetchFromGitHub
, mock
, pyjwt
, pytestCheckHook
, pythonOlder
}:
buildPythonPackage rec {
pname = "oauthlib";
version = "3.2.0";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = pname;
repo = pname;
rev = "v${version}";
hash = "sha256-41JFURG8G8BjlAlNu2+lbj84XR/trAk1U5OPYxPq+5M=";
};
propagatedBuildInputs = [
blinker
cryptography
pyjwt
];
checkInputs = [
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 ];
};
}