From d663cc5e173606d7d631c0504ab78ce7a68e1a1e Mon Sep 17 00:00:00 2001 From: Damien Cassou Date: Wed, 21 Oct 2015 22:31:09 +0200 Subject: [PATCH] gplaycli: init at 0.1.2 Also add ndg-httpsclient 0.4.0 which is a dependency of gplaycli. --- pkgs/top-level/python-packages.nix | 49 ++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 2ea48f7f54ee..200a26f6b64a 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -3811,6 +3811,34 @@ let propagatedBuildInputs = with self; [ gdata ]; }; + gplaycli = buildPythonPackage rec { + version = "0.1.2"; + name = "gplaycli-${version}"; + + src = pkgs.fetchFromGitHub { + owner = "matlink"; + repo = "gplaycli"; + rev = "${version}"; + sha256 = "0yc09inzs3aggj0gw4irlhlzw5q562fsp0sks352y6z0vx31hcp3"; + }; + + disabled = ! isPy27; + + propagatedBuildInputs = with self; [ pkgs.libffi pyasn1 clint ndg-httpsclient protobuf requests args ]; + + preBuild = '' + substituteInPlace setup.py --replace "/etc" "$out/etc" + substituteInPlace gplaycli/gplaycli.py --replace "/etc" "$out/etc" + ''; + + meta = { + homepage = https://github.com/matlink/gplaycli; + description = "Google Play Downloader via Command line"; + license = licenses.agl3Plus; + maintainers = with maintainers; [ DamienCassou ]; + }; + }; + gst-python = callPackage ../development/libraries/gstreamer/python { gst-plugins-base = pkgs.gst_all_1.gst-plugins-base; }; @@ -4297,6 +4325,27 @@ let }; }; + ndg-httpsclient = buildPythonPackage rec { + version = "0.4.0"; + name = "ndg-httpsclient-${version}"; + + propagatedBuildInputs = with self; [ pyopenssl ]; + + src = pkgs.fetchFromGitHub { + owner = "cedadev"; + repo = "ndg_httpsclient"; + rev = "v${version}"; + sha256 = "1prv4j3wcy9kl5ndd5by543xp4cji9k35qncsl995w6sway34s1a"; + }; + + meta = { + homepage = https://github.com/cedadev/ndg_httpsclient/; + description = "Provide enhanced HTTPS support for httplib and urllib2 using PyOpenSSL"; + license = licenses.bsd; + maintainers = with maintainers; [ DamienCassou ]; + }; + }; + netcdf4 = buildPythonPackage rec { name = "netCDF4-${version}"; version = "1.1.8";