From bc1c971ef4215c555545c5900d01a9c57e788f6b Mon Sep 17 00:00:00 2001 From: Chris Ostrouchov Date: Wed, 17 Oct 2018 14:38:14 -0400 Subject: [PATCH] pythonPackages.oauth: refactor move to python-modules --- .../python-modules/oauth/default.nix | 24 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 19 +-------------- 2 files changed, 25 insertions(+), 18 deletions(-) create mode 100644 pkgs/development/python-modules/oauth/default.nix diff --git a/pkgs/development/python-modules/oauth/default.nix b/pkgs/development/python-modules/oauth/default.nix new file mode 100644 index 000000000000..a8e5c8bf53d2 --- /dev/null +++ b/pkgs/development/python-modules/oauth/default.nix @@ -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; + }; + +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 9671c108133d..3bea54f4c185 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -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}";