Merge pull request #307098 from r-ryantm/auto-update/cilium-cli
[NixPkgs.git] / pkgs / development / python-modules / uasiren / default.nix
blob25f28f3d15d32d66a0c16533867bd3ac43bbf6c7
1 { lib
2 , buildPythonPackage
3 , fetchFromGitHub
5 # build time
6 , setuptools-scm
8 # propagates
9 , aiohttp
11 # tests
12 , pytestCheckHook
15 let
16   pname = "uasiren";
17   version = "0.0.1";
20 buildPythonPackage {
21   inherit pname version;
22   format = "setuptools";
24   src = fetchFromGitHub {
25     owner = "PaulAnnekov";
26     repo = pname;
27     rev = "v${version}";
28     hash = "sha256-NHrnG5Vhz+JZgcTJyfIgGz0Ye+3dFVv2zLCCqw2++oM=";
29   };
31   nativeBuildInputs = [
32     setuptools-scm
33   ];
35   propagatedBuildInputs = [
36     aiohttp
37   ];
39   nativeCheckInputs = [
40     pytestCheckHook
41   ];
43   pythonImportsCheck = [
44     "uasiren"
45     "uasiren.client"
46   ];
48   meta = with lib; {
49     changelog = "https://github.com/PaulAnnekov/uasiren/releases/tag/v${version}";
50     description = "Implements siren.pp.ua API - public wrapper for api.ukrainealarm.com API that returns info about Ukraine air-raid alarms";
51     homepage = "https://github.com/PaulAnnekov/uasiren";
52     license = licenses.mit;
53     maintainers = with maintainers; [ hexa ];
54   };