2018-07-21 02:44:44 +02:00
|
|
|
{ lib, buildPythonPackage, fetchPypi, requests }:
|
2018-05-07 12:35:40 +02:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pyowm";
|
|
|
|
version = "2.8.0";
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
|
|
|
sha256 = "0y2r322pcamabar70513pbyiq26x33l1aq9cim6k30lk9p4aq310";
|
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ requests ];
|
|
|
|
|
2018-06-22 11:48:21 +02:00
|
|
|
# This may actually break the package.
|
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace setup.py --replace "requests>=2.18.2,<2.19" "requests"
|
|
|
|
'';
|
|
|
|
|
|
|
|
# No tests in archive
|
|
|
|
doCheck = false;
|
|
|
|
|
2018-05-07 12:35:40 +02:00
|
|
|
meta = with lib; {
|
|
|
|
description = "A Python wrapper around the OpenWeatherMap web API";
|
|
|
|
homepage = https://pyowm.readthedocs.io/;
|
|
|
|
license = licenses.mit;
|
|
|
|
};
|
|
|
|
}
|