Merge pull request #114333 from fabaff/bump-pyowm

python3Packages.pyowm: 3.1.1 -> 3.2.0
This commit is contained in:
Sandro 2021-02-25 12:17:23 +01:00 committed by GitHub
commit 43d0a79e78
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,30 +1,42 @@
{ lib, buildPythonPackage, fetchPypi, pythonOlder, requests, geojson }: { lib
, buildPythonPackage
, fetchFromGitHub
, geojson
, pysocks
, pythonOlder
, requests
, pytestCheckHook
}:
buildPythonPackage rec { buildPythonPackage rec {
pname = "pyowm"; pname = "pyowm";
version = "3.1.1"; version = "3.2.0";
disabled = pythonOlder "3.7";
disabled = pythonOlder "3.3"; src = fetchFromGitHub {
owner = "csparpa";
src = fetchPypi { repo = pname;
inherit pname version; rev = version;
sha256 = "a7b18297a9189dbe5f6b454b12d61a407e35c7eb9ca75bcabfe5e1c83245290d"; sha256 = "0sq8rxcgdiayl5gy4qhkvvsdq1d93sbzn0nfg8f1vr8qxh8qkfq4";
}; };
propagatedBuildInputs = [ requests geojson ]; propagatedBuildInputs = [
geojson
pysocks
requests
];
# This may actually break the package. checkInputs = [ pytestCheckHook ];
postPatch = ''
substituteInPlace setup.py \
--replace "requests>=2.18.2,<2.19" "requests"
'';
# No tests in archive # Run only tests which don't require network access
doCheck = false; pytestFlagsArray = [ "tests/unit" ];
pythonImportsCheck = [ "pyowm" ];
meta = with lib; { meta = with lib; {
description = "A Python wrapper around the OpenWeatherMap web API"; description = "Python wrapper around the OpenWeatherMap web API";
homepage = "https://pyowm.readthedocs.io/"; homepage = "https://pyowm.readthedocs.io/";
license = licenses.mit; license = licenses.mit;
maintainers = with maintainers; [ fab ];
}; };
} }