Merge pull request #160101 from r-ryantm/auto-update/python3.10-pyowm

python310Packages.pyowm: 3.2.0 -> 3.3.0
This commit is contained in:
Fabian Affolter 2022-02-15 10:27:45 +01:00 committed by GitHub
commit 19baca38b0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -10,14 +10,16 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "pyowm"; pname = "pyowm";
version = "3.2.0"; version = "3.3.0";
format = "setuptools";
disabled = pythonOlder "3.7"; disabled = pythonOlder "3.7";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "csparpa"; owner = "csparpa";
repo = pname; repo = pname;
rev = version; rev = version;
sha256 = "0sq8rxcgdiayl5gy4qhkvvsdq1d93sbzn0nfg8f1vr8qxh8qkfq4"; sha256 = "sha256-cSOhm3aDksLBChZzgw1gjUjLQkElR2/xGFMOb9K9RME=";
}; };
propagatedBuildInputs = [ propagatedBuildInputs = [
@ -26,12 +28,18 @@ buildPythonPackage rec {
requests requests
]; ];
checkInputs = [ pytestCheckHook ]; checkInputs = [
pytestCheckHook
];
# Run only tests which don't require network access # Run only tests which don't require network access
pytestFlagsArray = [ "tests/unit" ]; pytestFlagsArray = [
"tests/unit"
];
pythonImportsCheck = [ "pyowm" ]; pythonImportsCheck = [
"pyowm"
];
meta = with lib; { meta = with lib; {
description = "Python wrapper around the OpenWeatherMap web API"; description = "Python wrapper around the OpenWeatherMap web API";