nixpkgs/pkgs/development/python-modules/pyowm/default.nix
Lancelot SIX c15aff9fa4
python3Packages.pyowm: drop outdated patching
Version 2.10 relaxed the requirement for geojson from
`geojson>=2.3.0,<2.4` to `geojson>=2.3.0,<3`. Remove the postPatch hook
that adjusted this requirement when it broke in nixpkgs.
2019-08-22 15:01:34 +02:00

31 lines
724 B
Nix

{ lib, buildPythonPackage, fetchPypi, pythonOlder, requests, geojson }:
buildPythonPackage rec {
pname = "pyowm";
version = "2.10.0";
disabled = pythonOlder "3.3";
src = fetchPypi {
inherit pname version;
sha256 = "8fd41a18536f4d6c432bc6d9ea69994efb1ea9b43688cf19523659b6f4d86cf7";
};
propagatedBuildInputs = [ requests geojson ];
# 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/;
license = licenses.mit;
};
}