From 363910dc7fde19b35513f1a4f3c88cdc9f043e57 Mon Sep 17 00:00:00 2001 From: Frederik Rietdijk Date: Fri, 22 Jun 2018 11:48:21 +0200 Subject: [PATCH] python.pkgs.pyowm: fix build --- pkgs/development/python-modules/pyowm/default.nix | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/pkgs/development/python-modules/pyowm/default.nix b/pkgs/development/python-modules/pyowm/default.nix index 26606a580a4..8175ef2b172 100644 --- a/pkgs/development/python-modules/pyowm/default.nix +++ b/pkgs/development/python-modules/pyowm/default.nix @@ -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/;