python3Packages.opensensemap-api: 0.3.2 -> 0.4.1 (#507435)

This commit is contained in:
Fabian Affolter
2026-04-07 01:34:01 +00:00
committed by GitHub
@@ -4,27 +4,34 @@
async-timeout,
buildPythonPackage,
fetchFromGitHub,
hatchling,
pytest-asyncio,
pytestCheckHook,
}:
buildPythonPackage rec {
buildPythonPackage (finalAttrs: {
pname = "opensensemap-api";
version = "0.3.2";
format = "setuptools";
version = "0.4.1";
pyproject = true;
src = fetchFromGitHub {
owner = "home-assistant-ecosystem";
repo = "python-opensensemap-api";
tag = version;
hash = "sha256-iUSdjU41JOT7k044EI2XEvJiSo6V4mO6S51EcIughEM=";
tag = finalAttrs.version;
hash = "sha256-cCvKgB2tdYZw7it8YAtZZgsQrGUQKGNLqWiERKDCMVw=";
};
propagatedBuildInputs = [
build-system = [ hatchling ];
dependencies = [
aiohttp
async-timeout
];
# Module has no tests
doCheck = false;
nativeCheckInputs = [
pytest-asyncio
pytestCheckHook
];
pythonImportsCheck = [ "opensensemap_api" ];
@@ -35,8 +42,8 @@ buildPythonPackage rec {
available information from the sensor can be retrieved.
'';
homepage = "https://github.com/home-assistant-ecosystem/python-opensensemap-api";
changelog = "https://github.com/home-assistant-ecosystem/python-opensensemap-api/releases/tag/${version}";
license = with lib.licenses; [ mit ];
changelog = "https://github.com/home-assistant-ecosystem/python-opensensemap-api/releases/tag/${finalAttrs.src.tag}";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ fab ];
};
}
})