2019-08-22 14:51:59 +02:00
|
|
|
{ lib, buildPythonPackage, fetchPypi, pythonOlder, requests, geojson }:
|
2018-05-07 12:35:40 +02:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pyowm";
|
2019-02-14 08:37:26 +01:00
|
|
|
version = "2.10.0";
|
2018-05-07 12:35:40 +02:00
|
|
|
|
2019-08-22 14:51:59 +02:00
|
|
|
disabled = pythonOlder "3.3";
|
|
|
|
|
2018-05-07 12:35:40 +02:00
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2019-02-14 08:37:26 +01:00
|
|
|
sha256 = "8fd41a18536f4d6c432bc6d9ea69994efb1ea9b43688cf19523659b6f4d86cf7";
|
2018-05-07 12:35:40 +02:00
|
|
|
};
|
|
|
|
|
2018-09-12 01:23:36 +02:00
|
|
|
propagatedBuildInputs = [ requests geojson ];
|
2018-05-07 12:35:40 +02:00
|
|
|
|
2018-06-22 11:48:21 +02:00
|
|
|
# This may actually break the package.
|
|
|
|
postPatch = ''
|
2018-09-12 01:23:36 +02:00
|
|
|
substituteInPlace setup.py \
|
2019-08-22 14:53:50 +02:00
|
|
|
--replace "requests>=2.18.2,<2.19" "requests"
|
2018-06-22 11:48:21 +02:00
|
|
|
'';
|
|
|
|
|
|
|
|
# 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";
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://pyowm.readthedocs.io/";
|
2018-05-07 12:35:40 +02:00
|
|
|
license = licenses.mit;
|
|
|
|
};
|
|
|
|
}
|