Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / python-modules / ukrainealarm / default.nix
blob4cd4d2a852a99d4e018c6fce6cebcaaa248c1792
1 { lib
2 , buildPythonPackage
3 , fetchFromGitHub
5 # build time
6 , setuptools-scm
8 # propagates
9 , aiohttp
11 # tests
12 , pytestCheckHook
15 let
16   pname = "ukrainealarm";
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-0gsxXQiSkJIM/I0VYsjdCCB3NjPr6QJbD/rBkGrwtW8=";
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     "ukrainealarm"
47     "ukrainealarm.client"
48   ];
50   meta = with lib; {
51     changelog = "https://github.com/PaulAnnekov/ukrainealarm/releases/tag/v${version}";
52     description = "Implements api.ukrainealarm.com API that returns info about Ukraine air raid alarms";
53     homepage = "https://github.com/PaulAnnekov/ukrainealarm";
54     license = licenses.mit;
55     maintainers = with maintainers; [ hexa ];
56   };