python3Packages.pyowm: add format

This commit is contained in:
Fabian Affolter 2022-02-15 09:01:32 +01:00 committed by GitHub
parent da9c48b2cf
commit ff3bfb7608
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -11,6 +11,8 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "pyowm"; pname = "pyowm";
version = "3.3.0"; version = "3.3.0";
format = "setuptools";
disabled = pythonOlder "3.7"; disabled = pythonOlder "3.7";
src = fetchFromGitHub { src = fetchFromGitHub {
@ -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";