git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #42052 from makefu/pkgs/python-forecastio/init

pythonPackages.python-forecastio: init at 1.4.0

commit352995d79b9fac78c7414a8c880662892ed495cc authorRobert Schütz <rschuetz17@gmail.com> dateTue 26 Jun 2018, 20:22 (8 years ago) parent9e02afc5db01c5
3 files changed+35−2
pkgs/development/python-modules/python-forecastio/default.nix+31 pkgs/servers/home-assistant/component-packages.nix+2−2 pkgs/top-level/python-packages.nix+2
pkgs/development/python-modules/python-forecastio/default.nixnew file+31
@@ -0,0 +1,31 @@
1+{ buildPythonPackage, stdenv, fetchPypi
2+, requests
3+, nose
4+, responses
5+}:
6+
7+buildPythonPackage rec {
8+ pname = "python-forecastio";
9+ version = "1.4.0";
10+
11+ src = fetchPypi {
12+ inherit pname version;
13+ sha256 = "0m6lf4a46pnwm5xg9dnmwslwzrpnj6d9agw570grciivbvb1ji0l";
14+
15+ };
16+
17+ checkInputs = [ nose ];
18+
19+ propagatedBuildInputs = [ requests responses ];
20+
21+ checkPhase = ''
22+ nosetests
23+ '';
24+
25+ meta = with stdenv.lib; {
26+ homepage = https://zeevgilovitz.com/python-forecast.io/;
27+ description = "A thin Python Wrapper for the Dark Sky (formerly forecast.io) weather API";
28+ license = licenses.bsd2;
29+ maintainers = with maintainers; [ makefu ];
30+ };
31+}
pkgs/servers/home-assistant/component-packages.nix+2−2
@@ -794,7 +794,7 @@
794794 "sensor.cups" = ps: with ps; [ pycups ];
795795 "sensor.currencylayer" = ps: with ps; [ ];
796796 "sensor.daikin" = ps: with ps; [ ];
797− "sensor.darksky" = ps: with ps; [ ];
797+ "sensor.darksky" = ps: with ps; [ python-forecastio ];
798798 "sensor.deconz" = ps: with ps; [ ];
799799 "sensor.deluge" = ps: with ps; [ deluge-client ];
800800 "sensor.demo" = ps: with ps; [ ];
@@ -1183,7 +1183,7 @@
11831183 "weather" = ps: with ps; [ ];
11841184 "weather.bom" = ps: with ps; [ ];
11851185 "weather.buienradar" = ps: with ps; [ ];
1186− "weather.darksky" = ps: with ps; [ ];
1186+ "weather.darksky" = ps: with ps; [ python-forecastio ];
11871187 "weather.demo" = ps: with ps; [ ];
11881188 "weather.ecobee" = ps: with ps; [ ];
11891189 "weather.ipma" = ps: with ps; [ ];
pkgs/top-level/python-packages.nix+2
@@ -2615,6 +2615,8 @@ in {
26152615 };
26162616 };
26172617
2618+ python-forecastio = callPackage ../development/python-modules/python-forecastio { };
2619+
26182620 fpdf = callPackage ../development/python-modules/fpdf { };
26192621
26202622 fpylll = callPackage ../development/python-modules/fpylll { };