2025-08-07 10:24:35 -07:00

35 lines
681 B
Nix

{
lib,
buildPythonPackage,
fetchPypi,
poetry-core,
aiohttp,
}:
buildPythonPackage rec {
pname = "hko";
version = "0.3.2";
pyproject = true;
src = fetchPypi {
inherit pname version;
hash = "sha256-6FzdaSaw7sX52wM8HbHFGtKdR2JBg3B2cMZnP7RfQzs=";
};
build-system = [ poetry-core ];
dependencies = [ aiohttp ];
# Tests require network access
doCheck = false;
pythonImportsCheck = [ "hko" ];
meta = {
description = "Unofficial Python wrapper for the Hong Kong Observatory public API";
homepage = "https://github.com/MisterCommand/python-hko";
license = lib.licenses.mit;
maintainers = [ lib.maintainers.jamiemagee ];
};
}