Skip to content

Commit

Permalink
Merge pull request #42052 from makefu/pkgs/python-forecastio/init
Browse files Browse the repository at this point in the history
pythonPackages.python-forecastio: init at 1.4.0
  • Loading branch information
dotlambda committed Jun 26, 2018
2 parents 9e02afc + 5db01c5 commit 352995d
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 2 deletions.
31 changes: 31 additions & 0 deletions pkgs/development/python-modules/python-forecastio/default.nix
@@ -0,0 +1,31 @@
{ buildPythonPackage, stdenv, fetchPypi
, requests
, nose
, responses
}:

buildPythonPackage rec {
pname = "python-forecastio";
version = "1.4.0";

src = fetchPypi {
inherit pname version;
sha256 = "0m6lf4a46pnwm5xg9dnmwslwzrpnj6d9agw570grciivbvb1ji0l";

};

checkInputs = [ nose ];

propagatedBuildInputs = [ requests responses ];

checkPhase = ''
nosetests
'';

meta = with stdenv.lib; {
homepage = https://zeevgilovitz.com/python-forecast.io/;
description = "A thin Python Wrapper for the Dark Sky (formerly forecast.io) weather API";
license = licenses.bsd2;
maintainers = with maintainers; [ makefu ];
};
}
4 changes: 2 additions & 2 deletions pkgs/servers/home-assistant/component-packages.nix
Expand Up @@ -794,7 +794,7 @@
"sensor.cups" = ps: with ps; [ pycups ];
"sensor.currencylayer" = ps: with ps; [ ];
"sensor.daikin" = ps: with ps; [ ];
"sensor.darksky" = ps: with ps; [ ];
"sensor.darksky" = ps: with ps; [ python-forecastio ];
"sensor.deconz" = ps: with ps; [ ];
"sensor.deluge" = ps: with ps; [ deluge-client ];
"sensor.demo" = ps: with ps; [ ];
Expand Down Expand Up @@ -1183,7 +1183,7 @@
"weather" = ps: with ps; [ ];
"weather.bom" = ps: with ps; [ ];
"weather.buienradar" = ps: with ps; [ ];
"weather.darksky" = ps: with ps; [ ];
"weather.darksky" = ps: with ps; [ python-forecastio ];
"weather.demo" = ps: with ps; [ ];
"weather.ecobee" = ps: with ps; [ ];
"weather.ipma" = ps: with ps; [ ];
Expand Down
2 changes: 2 additions & 0 deletions pkgs/top-level/python-packages.nix
Expand Up @@ -2615,6 +2615,8 @@ in {
};
};

python-forecastio = callPackage ../development/python-modules/python-forecastio { };

fpdf = callPackage ../development/python-modules/fpdf { };

fpylll = callPackage ../development/python-modules/fpylll { };
Expand Down

0 comments on commit 352995d

Please sign in to comment.