Merge pull request #67249 from lsix/fix-pyowm
pythonPackage.pyown: fix builds
This commit is contained in:
commit
19081d4b23
@ -1,9 +1,11 @@
|
||||
{ lib, buildPythonPackage, fetchPypi, requests, geojson }:
|
||||
{ lib, buildPythonPackage, fetchPypi, pythonOlder, requests, geojson }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "pyowm";
|
||||
version = "2.10.0";
|
||||
|
||||
disabled = pythonOlder "3.3";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "8fd41a18536f4d6c432bc6d9ea69994efb1ea9b43688cf19523659b6f4d86cf7";
|
||||
@ -14,8 +16,7 @@ buildPythonPackage rec {
|
||||
# This may actually break the package.
|
||||
postPatch = ''
|
||||
substituteInPlace setup.py \
|
||||
--replace "requests>=2.18.2,<2.19" "requests" \
|
||||
--replace "geojson>=2.3.0,<2.4" "geojson<2.5,>=2.3.0"
|
||||
--replace "requests>=2.18.2,<2.19" "requests"
|
||||
'';
|
||||
|
||||
# No tests in archive
|
||||
|
Loading…
Reference in New Issue
Block a user