@@ -1,4 +1,4 @@
1−{ lib, buildPythonPackage, fetchPypi, requests }:
1+{ lib, buildPythonPackage, fetchPypi, requests, geojson }:
22
33buildPythonPackage rec {
44 pname = "pyowm";
@@ -9,11 +9,13 @@ buildPythonPackage rec {
99 sha256 = "ed175873823a2fedb48e453505c974ca39f3f75006ef1af54fdbcf72e6796849";
1010 };
1111
12− propagatedBuildInputs = [ requests ];
12+ propagatedBuildInputs = [ requests geojson ];
1313
1414 # This may actually break the package.
1515 postPatch = ''
16− substituteInPlace setup.py --replace "requests>=2.18.2,<2.19" "requests"
16+ substituteInPlace setup.py \
17+ --replace "requests>=2.18.2,<2.19" "requests" \
18+ --replace "geojson>=2.3.0,<2.4" "geojson<2.5,>=2.3.0"
1719 '';
1820
1921 # No tests in archive