pythonPackages.oauth: refactor move to python-modules

This commit is contained in:
Chris Ostrouchov 2018-10-17 14:38:14 -04:00 committed by Frederik Rietdijk
parent a543d4236e
commit bc1c971ef4
2 changed files with 25 additions and 18 deletions

View File

@ -0,0 +1,24 @@
{ stdenv
, buildPythonPackage
, fetchPypi
}:
buildPythonPackage rec {
pname = "oauth";
version = "1.0.1";
src = fetchPypi {
inherit pname version;
sha256 = "0pdgi35hczsslil4890xqawnbpdazkgf2v1443847h5hy2gq2sg7";
};
# No tests included in archive
doCheck = false;
meta = with stdenv.lib; {
homepage = http://code.google.com/p/oauth;
description = "Library for OAuth version 1.0a";
license = licenses.mit;
};
}

View File

@ -2976,24 +2976,7 @@ in {
livestreamer-curses = callPackage ../development/python-modules/livestreamer-curses { };
oauth = buildPythonPackage (rec {
name = "oauth-1.0.1";
src = pkgs.fetchurl {
url = "mirror://pypi/o/oauth/oauth-1.0.1.tar.gz";
sha256 = "0pdgi35hczsslil4890xqawnbpdazkgf2v1443847h5hy2gq2sg7";
};
# No tests included in archive
doCheck = false;
meta = {
homepage = http://code.google.com/p/oauth;
description = "Library for OAuth version 1.0a";
license = licenses.mit;
platforms = platforms.all;
};
});
oauth = callPackage ../development/python-modules/oauth { };
oauth2 = buildPythonPackage (rec {
name = "oauth2-${version}";