python.pkgs.pyowm: fix build

This commit is contained in:
Frederik Rietdijk 2018-06-22 11:48:21 +02:00
parent 751c9328e6
commit 363910dc7f

View File

@ -11,6 +11,14 @@ buildPythonPackage rec {
propagatedBuildInputs = [ requests ];
# This may actually break the package.
postPatch = ''
substituteInPlace setup.py --replace "requests>=2.18.2,<2.19" "requests"
'';
# No tests in archive
doCheck = false;
meta = with lib; {
description = "A Python wrapper around the OpenWeatherMap web API";
homepage = https://pyowm.readthedocs.io/;