Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / python-modules / uasiren / default.nix
blobb6771266f2ab76b4f38dbaf0eb3c99938d2d3f78
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   SETUPTOOLS_SCM_PRETEND_VERSION = version;
33   nativeBuildInputs = [
34     setuptools-scm
35   ];
37   propagatedBuildInputs = [
38     aiohttp
39   ];
41   nativeCheckInputs = [
42     pytestCheckHook
43   ];
45   pythonImportsCheck = [
46     "uasiren"
47     "uasiren.client"
48   ];
50   meta = with lib; {
51     changelog = "https://github.com/PaulAnnekov/uasiren/releases/tag/v${version}";
52     description = "Implements siren.pp.ua API - public wrapper for api.ukrainealarm.com API that returns info about Ukraine air-raid alarms";
53     homepage = "https://github.com/PaulAnnekov/uasiren";
54     license = licenses.mit;
55     maintainers = with maintainers; [ hexa ];
56   };