1{ buildPythonPackage, lib, fetchPypi
2, requests
3, nose
4, responses
5}:
6
7buildPythonPackage 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 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}