git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #67249 from lsix/fix-pyowm

pythonPackage.pyown: fix builds

commit19081d4b233a3d754eb3d234c47231100ca767f2 authorMarek Mahut <marek.mahut@gmail.com> dateSat 24 Aug 2019, 12:46 (7 years ago) parente567a5fc15aff9
1 file changed+4−3
pkgs/development/python-modules/pyowm/default.nix+4−3
pkgs/development/python-modules/pyowm/default.nix+4−3
@@ -1,9 +1,11 @@
1−{ lib, buildPythonPackage, fetchPypi, requests, geojson }:
1+{ lib, buildPythonPackage, fetchPypi, pythonOlder, requests, geojson }:
22
33buildPythonPackage rec {
44 pname = "pyowm";
55 version = "2.10.0";
66
7+ disabled = pythonOlder "3.3";
8+
79 src = fetchPypi {
810 inherit pname version;
911 sha256 = "8fd41a18536f4d6c432bc6d9ea69994efb1ea9b43688cf19523659b6f4d86cf7";
@@ -14,8 +16,7 @@ buildPythonPackage rec {
1416 # This may actually break the package.
1517 postPatch = ''
1618 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"
19+ --replace "requests>=2.18.2,<2.19" "requests"
1920 '';
2021
2122 # No tests in archive