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