1{ lib, buildPythonPackage, fetchPypi, requests }: 2 3buildPythonPackage rec { 4 pname = "pyowm"; 5 version = "2.9.0"; 6 7 src = fetchPypi { 8 inherit pname version; 9 sha256 = "ed175873823a2fedb48e453505c974ca39f3f75006ef1af54fdbcf72e6796849"; 10 }; 11 12 propagatedBuildInputs = [ requests ]; 13 14 # This may actually break the package. 15 postPatch = '' 16 substituteInPlace setup.py --replace "requests>=2.18.2,<2.19" "requests" 17 ''; 18 19 # No tests in archive 20 doCheck = false; 21 22 meta = with lib; { 23 description = "A Python wrapper around the OpenWeatherMap web API"; 24 homepage = https://pyowm.readthedocs.io/; 25 license = licenses.mit; 26 }; 27}