1{
2 lib,
3 buildPythonPackage,
4 fetchPypi,
5 poetry-core,
6 aiohttp,
7}:
8
9buildPythonPackage rec {
10 pname = "hko";
11 version = "0.3.2";
12 pyproject = true;
13
14 src = fetchPypi {
15 inherit pname version;
16 hash = "sha256-6FzdaSaw7sX52wM8HbHFGtKdR2JBg3B2cMZnP7RfQzs=";
17 };
18
19 build-system = [ poetry-core ];
20
21 dependencies = [ aiohttp ];
22
23 # Tests require network access
24 doCheck = false;
25
26 pythonImportsCheck = [ "hko" ];
27
28 meta = {
29 description = "Unofficial Python wrapper for the Hong Kong Observatory public API";
30 homepage = "https://github.com/MisterCommand/python-hko";
31 license = lib.licenses.mit;
32 maintainers = [ lib.maintainers.jamiemagee ];
33 };
34}