1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5
6 # build time
7 setuptools-scm,
8
9 # propagates
10 aiohttp,
11
12 # tests
13 pytest-asyncio,
14 pytestCheckHook,
15}:
16
17let
18 pname = "uasiren";
19 version = "0.0.1";
20in
21
22buildPythonPackage {
23 inherit pname version;
24 format = "setuptools";
25
26 src = fetchFromGitHub {
27 owner = "PaulAnnekov";
28 repo = "uasiren";
29 rev = "v${version}";
30 hash = "sha256-NHrnG5Vhz+JZgcTJyfIgGz0Ye+3dFVv2zLCCqw2++oM=";
31 };
32
33 nativeBuildInputs = [ setuptools-scm ];
34
35 propagatedBuildInputs = [ aiohttp ];
36
37 nativeCheckInputs = [
38 pytest-asyncio
39 pytestCheckHook
40 ];
41
42 pythonImportsCheck = [
43 "uasiren"
44 "uasiren.client"
45 ];
46
47 meta = with lib; {
48 changelog = "https://github.com/PaulAnnekov/uasiren/releases/tag/v${version}";
49 description = "Implements siren.pp.ua API - public wrapper for api.ukrainealarm.com API that returns info about Ukraine air-raid alarms";
50 homepage = "https://github.com/PaulAnnekov/uasiren";
51 license = licenses.mit;
52 maintainers = with maintainers; [ hexa ];
53 };
54}