Merge pull request #335209 from fabaff/pyairnow-bump

python312Packages.pyairnow: 1.2.1 -> 1.2.2
This commit is contained in:
Fabian Affolter 2024-08-17 00:43:52 +02:00 committed by GitHub
commit e65003353f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -4,45 +4,37 @@
aioresponses,
buildPythonPackage,
fetchFromGitHub,
fetchpatch,
pytest-aiohttp,
poetry-core,
pytest-aiohttp,
pytest-asyncio,
pytest-cov,
pytest-cov-stub,
pytestCheckHook,
pythonOlder,
}:
buildPythonPackage rec {
pname = "pyairnow";
version = "1.2.1";
format = "pyproject";
version = "1.2.2";
pyproject = true;
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "asymworks";
repo = pname;
repo = "pyairnow";
rev = "refs/tags/v${version}";
hash = "sha256-aab+3xrEiCjysa+DzXWelQwz8V2tr74y8v0NpDZiuTk=";
hash = "sha256-KjOu9V92n2rq8iOkgutlK7EMRvirFAEK8oxseI+dr2s=";
};
patches = [
(fetchpatch {
# remove setuptools, wheel from build-system requirements
# https://github.com/asymworks/pyairnow/pull/7
name = "pyairnow-build-system.patch";
url = "https://github.com/asymworks/pyairnow/commit/e3cc892ffce855d8213264248b6b4ed78ee791bd.patch";
hash = "sha256-L0MV2okkf6Nf1S4zS7lb4lt5eSfTF10yDJLzpyDrSl8=";
})
];
build-system = [ poetry-core ];
nativeBuildInputs = [ poetry-core ];
propagatedBuildInputs = [ aiohttp ];
dependencies = [ aiohttp ];
nativeCheckInputs = [
aioresponses
pytest-asyncio
pytest-aiohttp
pytest-cov
pytest-cov-stub
pytestCheckHook
];
@ -52,7 +44,7 @@ buildPythonPackage rec {
description = "Python wrapper for EPA AirNow Air Quality API";
homepage = "https://github.com/asymworks/pyairnow";
changelog = "https://github.com/asymworks/pyairnow/blob/v${version}/CHANGELOG.md";
license = with licenses; [ mit ];
license = licenses.mit;
maintainers = with maintainers; [ fab ];
};
}