2021-01-25 08:26:54 +00:00
|
|
|
{ buildPythonPackage, lib, fetchPypi
|
2018-06-14 22:32:30 +01:00
|
|
|
, 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
|
|
|
|
'';
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://zeevgilovitz.com/python-forecast.io/";
|
2018-06-14 22:32:30 +01:00
|
|
|
description = "A thin Python Wrapper for the Dark Sky (formerly forecast.io) weather API";
|
|
|
|
license = licenses.bsd2;
|
|
|
|
maintainers = with maintainers; [ makefu ];
|
|
|
|
};
|
|
|
|
}
|