python2Packages.oauthlib: freeze py2 at 3.1.0

python 2 supported ended on master
This commit is contained in:
Jonathan Ringer 2020-05-10 11:45:08 -07:00 committed by Frederik Rietdijk
parent 68f1bdc1c8
commit 065fd414b5
2 changed files with 37 additions and 1 deletions

View File

@ -0,0 +1,33 @@
{ stdenv
, buildPythonPackage
, fetchPypi
, mock
, pytest
, cryptography
, blinker
, pyjwt
}:
buildPythonPackage rec {
pname = "oauthlib";
version = "3.1.0";
src = fetchPypi {
inherit pname version;
sha256 = "bee41cc35fcca6e988463cacc3bcb8a96224f470ca547e697b604cc697b2f889";
};
checkInputs = [ mock pytest ];
propagatedBuildInputs = [ cryptography blinker pyjwt ];
checkPhase = ''
py.test tests/
'';
meta = with stdenv.lib; {
homepage = "https://github.com/idan/oauthlib";
description = "A generic, spec-compliant, thorough implementation of the OAuth request-signing logic";
maintainers = with maintainers; [ prikhi ];
license = licenses.bsd3;
};
}

View File

@ -4762,7 +4762,10 @@ in {
oauth2client = callPackage ../development/python-modules/oauth2client { };
oauthlib = callPackage ../development/python-modules/oauthlib { };
oauthlib = if isPy27 then
callPackage ../development/python-modules/oauthlib/3.1.nix { }
else
callPackage ../development/python-modules/oauthlib { };
obfsproxy = callPackage ../development/python-modules/obfsproxy { };