From 99ce4fa5d6b7e3fe185be08620b33e1ce8b3895a Mon Sep 17 00:00:00 2001 From: Chris Ostrouchov Date: Mon, 15 Oct 2018 23:38:16 -0400 Subject: [PATCH] pythonPackages.gpsoauth: refactor move to python-modules --- .../python-modules/gpsoauth/default.nix | 36 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 32 +---------------- 2 files changed, 37 insertions(+), 31 deletions(-) create mode 100644 pkgs/development/python-modules/gpsoauth/default.nix diff --git a/pkgs/development/python-modules/gpsoauth/default.nix b/pkgs/development/python-modules/gpsoauth/default.nix new file mode 100644 index 000000000000..68dce423390a --- /dev/null +++ b/pkgs/development/python-modules/gpsoauth/default.nix @@ -0,0 +1,36 @@ +{ stdenv +, buildPythonPackage +, fetchPypi +, cffi +, cryptography +, enum34 +, idna +, ipaddress +, ndg-httpsclient +, pyopenssl +, pyasn1 +, pycparser +, pycryptodome +, requests +, six +}: + +buildPythonPackage rec { + version = "0.2.0"; + pname = "gpsoauth"; + + src = fetchPypi { + inherit pname version; + sha256 = "01zxw8rhml8xfwda7ba8983890bzwkfa55ijd6qf8qrdy6ja1ncn"; + }; + + propagatedBuildInputs = [ cffi cryptography enum34 idna ipaddress ndg-httpsclient pyopenssl pyasn1 pycparser pycryptodome requests six ]; + + meta = with stdenv.lib; { + description = "A python client library for Google Play Services OAuth"; + homepage = "https://github.com/simon-weber/gpsoauth"; + license = licenses.mit; + maintainers = with maintainers; [ jgillich ]; + }; + +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 589694b441dd..1a8b564d7b84 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -1838,37 +1838,7 @@ in { gpapi = callPackage ../development/python-modules/gpapi { }; gplaycli = callPackage ../development/python-modules/gplaycli { }; - gpsoauth = buildPythonPackage rec { - version = "0.2.0"; - name = "gpsoauth-${version}"; - - src = pkgs.fetchurl { - url = "mirror://pypi/g/gpsoauth/${name}.tar.gz"; - sha256 = "01zxw8rhml8xfwda7ba8983890bzwkfa55ijd6qf8qrdy6ja1ncn"; - }; - - propagatedBuildInputs = with self; [ - cffi - cryptography - enum34 - idna - ipaddress - ndg-httpsclient - pyopenssl - pyasn1 - pycparser - pycryptodome - requests - six - ]; - - meta = { - description = "A python client library for Google Play Services OAuth"; - homepage = "https://github.com/simon-weber/gpsoauth"; - license = licenses.mit; - maintainers = with maintainers; [ jgillich ]; - }; - }; + gpsoauth = callPackage ../development/python-modules/gpsoauth { }; grip = callPackage ../development/python-modules/grip { };