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