3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/python-modules/pyowm/default.nix

30 lines
740 B
Nix
Raw Normal View History

{ lib, buildPythonPackage, fetchPypi, requests, geojson }:
2018-05-07 11:35:40 +01:00
buildPythonPackage rec {
pname = "pyowm";
2018-08-13 08:31:11 +01:00
version = "2.9.0";
2018-05-07 11:35:40 +01:00
src = fetchPypi {
inherit pname version;
2018-08-13 08:31:11 +01:00
sha256 = "ed175873823a2fedb48e453505c974ca39f3f75006ef1af54fdbcf72e6796849";
2018-05-07 11:35:40 +01:00
};
propagatedBuildInputs = [ requests geojson ];
2018-05-07 11:35:40 +01:00
2018-06-22 10:48:21 +01:00
# This may actually break the package.
postPatch = ''
substituteInPlace setup.py \
--replace "requests>=2.18.2,<2.19" "requests" \
--replace "geojson>=2.3.0,<2.4" "geojson<2.5,>=2.3.0"
2018-06-22 10:48:21 +01:00
'';
# No tests in archive
doCheck = false;
2018-05-07 11:35:40 +01:00
meta = with lib; {
description = "A Python wrapper around the OpenWeatherMap web API";
homepage = https://pyowm.readthedocs.io/;
license = licenses.mit;
};
}