Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 20.03 30 lines 724 B view raw
1{ lib, buildPythonPackage, fetchPypi, pythonOlder, requests, geojson }: 2 3buildPythonPackage rec { 4 pname = "pyowm"; 5 version = "2.10.0"; 6 7 disabled = pythonOlder "3.3"; 8 9 src = fetchPypi { 10 inherit pname version; 11 sha256 = "8fd41a18536f4d6c432bc6d9ea69994efb1ea9b43688cf19523659b6f4d86cf7"; 12 }; 13 14 propagatedBuildInputs = [ requests geojson ]; 15 16 # This may actually break the package. 17 postPatch = '' 18 substituteInPlace setup.py \ 19 --replace "requests>=2.18.2,<2.19" "requests" 20 ''; 21 22 # No tests in archive 23 doCheck = false; 24 25 meta = with lib; { 26 description = "A Python wrapper around the OpenWeatherMap web API"; 27 homepage = https://pyowm.readthedocs.io/; 28 license = licenses.mit; 29 }; 30}