git.iko.soy/typeable/nixpkgs
on master help sign in
pythonPackages.python-forecastio: init at 1.4.0
commitecac42bd87eb6882dec84ec97ae890c61008689e authormakefu <github@syntax-fehler.de> dateThu 14 Jun 2018, 23:32 (8 years ago) parent889bb68
2 files changed+33
pkgs/development/python-modules/python-forecastio/default.nix+31 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/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 { };