2019-08-22 12:51:59 +00:00
|
|
|
{ lib, buildPythonPackage, fetchPypi, pythonOlder, requests, geojson }:
|
2018-05-07 10:35:40 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pyowm";
|
2020-10-16 01:41:27 +00:00
|
|
|
version = "3.1.1";
|
2018-05-07 10:35:40 +00:00
|
|
|
|
2019-08-22 12:51:59 +00:00
|
|
|
disabled = pythonOlder "3.3";
|
|
|
|
|
2018-05-07 10:35:40 +00:00
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-10-16 01:41:27 +00:00
|
|
|
sha256 = "a7b18297a9189dbe5f6b454b12d61a407e35c7eb9ca75bcabfe5e1c83245290d";
|
2018-05-07 10:35:40 +00:00
|
|
|
};
|
|
|
|
|
2018-09-11 23:23:36 +00:00
|
|
|
propagatedBuildInputs = [ requests geojson ];
|
2018-05-07 10:35:40 +00:00
|
|
|
|
2018-06-22 09:48:21 +00:00
|
|
|
# This may actually break the package.
|
|
|
|
postPatch = ''
|
2018-09-11 23:23:36 +00:00
|
|
|
substituteInPlace setup.py \
|
2019-08-22 12:53:50 +00:00
|
|
|
--replace "requests>=2.18.2,<2.19" "requests"
|
2018-06-22 09:48:21 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
# No tests in archive
|
|
|
|
doCheck = false;
|
|
|
|
|
2018-05-07 10:35:40 +00:00
|
|
|
meta = with lib; {
|
|
|
|
description = "A Python wrapper around the OpenWeatherMap web API";
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://pyowm.readthedocs.io/";
|
2018-05-07 10:35:40 +00:00
|
|
|
license = licenses.mit;
|
|
|
|
};
|
|
|
|
}
|