pythonPackages.gpsoauth: refactor move to python-modules

This commit is contained in:
Chris Ostrouchov 2018-10-15 23:38:16 -04:00 committed by Frederik Rietdijk
parent 522a8a84d2
commit 99ce4fa5d6
2 changed files with 37 additions and 31 deletions

View File

@ -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 ];
};
}

View File

@ -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 { };