about summary refs log tree commit diff
path: root/pkgs/development/python-modules/pychromecast
diff options
context:
space:
mode:
authorWill Dietz <github@wdtz.org>2019-01-21 04:02:54 -0600
committerRobert Schütz <rschuetz17@gmail.com>2019-01-21 11:02:54 +0100
commitb0ba558f93e58d2d9932252e8ad065c1b19f6948 (patch)
tree406ab1e2e17ec86645081e91520663a38d350840 /pkgs/development/python-modules/pychromecast
parent6d4f3311d4b5662e2703cfd3278fd78bd972a56c (diff)
pythonPackages.PyChromecast: 2.3.0 -> 2.4.0 (#54361)
also py2 support was dropped in 2.0 (apparently)
Diffstat (limited to 'pkgs/development/python-modules/pychromecast')
-rw-r--r--pkgs/development/python-modules/pychromecast/default.nix17
1 files changed, 9 insertions, 8 deletions
diff --git a/pkgs/development/python-modules/pychromecast/default.nix b/pkgs/development/python-modules/pychromecast/default.nix
index 2494407766c74..bda05a58e150d 100644
--- a/pkgs/development/python-modules/pychromecast/default.nix
+++ b/pkgs/development/python-modules/pychromecast/default.nix
@@ -1,19 +1,20 @@
-{ lib, fetchurl, buildPythonPackage, requests, six, zeroconf, protobuf, casttube }:
+{ lib, fetchPypi, buildPythonPackage, requests, zeroconf, protobuf, casttube, isPy3k }:
 
 buildPythonPackage rec {
   pname = "PyChromecast";
-  version = "2.3.0";
-  name = pname + "-" + version;
+  version = "2.4.0";
 
-  src = fetchurl {
-    url    = "mirror://pypi/p/pychromecast/${name}.tar.gz";
-    sha256 = "f385168e34d2ef47f976c8e41bad2f58f5ca004634c0ccb1a12623d8beb2fa38";
+  src = fetchPypi {
+    inherit pname version;
+    sha256 = "0q012ghssk2xhm17v28sc2lv62vk7wd5p7zzdbgxk6kywfx8yvm2";
   };
 
-  propagatedBuildInputs = [ requests six zeroconf protobuf casttube ];
+  disabled = !isPy3k;
+
+  propagatedBuildInputs = [ requests zeroconf protobuf casttube ];
 
   meta = with lib; {
-    description = "Library for Python 2 and 3 to communicate with the Google Chromecast";
+    description = "Library for Python 3.4+ to communicate with the Google Chromecast";
     homepage    = https://github.com/balloob/pychromecast;
     license     = licenses.mit;
     maintainers = with maintainers; [ abbradar ];