pythonPackages.oauth2: refactor move to python-modules

This commit is contained in:
Chris Ostrouchov 2018-10-17 14:40:14 -04:00 committed by Frederik Rietdijk
parent bc1c971ef4
commit c83ce200af
2 changed files with 33 additions and 24 deletions

View File

@ -0,0 +1,32 @@
{ stdenv
, buildPythonPackage
, fetchPypi
, httplib2
, mock
, coverage
}:
buildPythonPackage rec {
pname = "oauth2";
version = "1.9.0.post1";
src = fetchPypi {
inherit pname version;
sha256 = "c006a85e7c60107c7cc6da1b184b5c719f6dd7202098196dfa6e55df669b59bf";
};
propagatedBuildInputs = [ httplib2 ];
buildInputs = [ mock coverage ];
# ServerNotFoundError: Unable to find the server at oauth-sandbox.sevengoslings.net
doCheck = false;
meta = with stdenv.lib; {
homepage = "https://github.com/simplegeo/python-oauth2";
description = "Library for OAuth version 1.0";
license = licenses.mit;
maintainers = with maintainers; [ garbas ];
platforms = platforms.linux;
};
}

View File

@ -2978,30 +2978,7 @@ in {
oauth = callPackage ../development/python-modules/oauth { }; oauth = callPackage ../development/python-modules/oauth { };
oauth2 = buildPythonPackage (rec { oauth2 = callPackage ../development/python-modules/oauth2 { };
name = "oauth2-${version}";
version = "1.9.0.post1";
src = pkgs.fetchurl {
url = "mirror://pypi/o/oauth2/${name}.tar.gz";
sha256 = "c006a85e7c60107c7cc6da1b184b5c719f6dd7202098196dfa6e55df669b59bf";
};
propagatedBuildInputs = with self; [ httplib2 ];
buildInputs = with self; [ mock coverage ];
# ServerNotFoundError: Unable to find the server at oauth-sandbox.sevengoslings.net
doCheck = false;
meta = {
homepage = "https://github.com/simplegeo/python-oauth2";
description = "Library for OAuth version 1.0";
license = licenses.mit;
maintainers = with maintainers; [ garbas ];
platforms = platforms.linux;
};
});
oauth2client = callPackage ../development/python-modules/oauth2client { }; oauth2client = callPackage ../development/python-modules/oauth2client { };