1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-25 03:17:13 +00:00
nixpkgs/pkgs/development/python-modules/pyowm/default.nix

31 lines
725 B
Nix
Raw Normal View History

{ lib, buildPythonPackage, fetchPypi, pythonOlder, requests, geojson }:
2018-05-07 11:35:40 +01:00
buildPythonPackage rec {
pname = "pyowm";
2020-10-16 02:41:27 +01:00
version = "3.1.1";
2018-05-07 11:35:40 +01:00
disabled = pythonOlder "3.3";
2018-05-07 11:35:40 +01:00
src = fetchPypi {
inherit pname version;
2020-10-16 02:41:27 +01:00
sha256 = "a7b18297a9189dbe5f6b454b12d61a407e35c7eb9ca75bcabfe5e1c83245290d";
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"
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/";
2018-05-07 11:35:40 +01:00
license = licenses.mit;
};
}