1{ lib, buildPythonPackage, fetchPypi, pythonOlder, requests, geojson }:
2
3buildPythonPackage rec {
4 pname = "pyowm";
5 version = "3.0.0";
6
7 disabled = pythonOlder "3.3";
8
9 src = fetchPypi {
10 inherit pname version;
11 sha256 = "f06ac5f2356f0964f088b1f840a6d382499054bd18539ffb1e7c84f29c2c39b6";
12 };
13
14 propagatedBuildInputs = [ requests geojson ];
15
16 # This may actually break the package.
17 postPatch = ''
18 substituteInPlace setup.py \
19 --replace "requests>=2.18.2,<2.19" "requests"
20 '';
21
22 # No tests in archive
23 doCheck = false;
24
25 meta = with lib; {
26 description = "A Python wrapper around the OpenWeatherMap web API";
27 homepage = "https://pyowm.readthedocs.io/";
28 license = licenses.mit;
29 };
30}