summaryrefslogtreecommitdiffstats
path: root/pkgs/development/python-modules
diff options
context:
space:
mode:
authorMartin Weinelt <mweinelt@users.noreply.github.com>2021-01-28 00:50:19 +0100
committerGitHub <noreply@github.com>2021-01-28 00:50:19 +0100
commit637244e3437e9fb0f355358783d0eafc12a3eec5 (patch)
tree9d03ba0ce3aef400ade668881e123668c4e91960 /pkgs/development/python-modules
parent313edd0f8d8b1acad88fcb99e43da4a38bacc79e (diff)
parentfb664e15f52a2178c3f8255b556c42581b35786e (diff)
Merge pull request #110968 from fabaff/bump-fritzhome
python3Packages.pyfritzhome: 0.4.2 -> 0.6.0
Diffstat (limited to 'pkgs/development/python-modules')
-rw-r--r--pkgs/development/python-modules/pyfritzhome/default.nix25
1 files changed, 16 insertions, 9 deletions
diff --git a/pkgs/development/python-modules/pyfritzhome/default.nix b/pkgs/development/python-modules/pyfritzhome/default.nix
index 7c5dfecd269b..b7b4b3cdbcbb 100644
--- a/pkgs/development/python-modules/pyfritzhome/default.nix
+++ b/pkgs/development/python-modules/pyfritzhome/default.nix
@@ -1,20 +1,25 @@
-{ lib, buildPythonPackage, fetchPypi, pythonOlder
+{ lib
+, buildPythonPackage
+, fetchFromGitHub
+, pythonOlder
, requests
-, nose, mock }:
+, nose
+, mock
+}:
buildPythonPackage rec {
pname = "pyfritzhome";
- version = "0.4.2";
+ version = "0.6.0";
disabled = pythonOlder "3.5";
- src = fetchPypi {
- inherit pname version;
- sha256 = "0ncyv8svw0fhs01ijjkb1gcinb3jpyjvv9xw1bhnf4ri7b27g6ww";
+ src = fetchFromGitHub {
+ owner = "hthiery";
+ repo = "python-fritzhome";
+ rev = version;
+ sha256 = "1wzys84hxrjcg86fcn7f7i2i6979qwcpny2afk5rvwljh8f7bli5";
};
- propagatedBuildInputs = [
- requests
- ];
+ propagatedBuildInputs = [ requests ];
checkInputs = [
mock
@@ -25,6 +30,8 @@ buildPythonPackage rec {
nosetests --with-coverage
'';
+ pythonImportsCheck = [ "pyfritzhome" ];
+
meta = with lib; {
description = "Python Library to access AVM FRITZ!Box homeautomation";
homepage = "https://github.com/hthiery/python-fritzhome";