fa5436e0a7
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
50 lines
1,012 B
Nix
50 lines
1,012 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
|
|
# build time
|
|
setuptools-scm,
|
|
|
|
# propagates
|
|
aiohttp,
|
|
|
|
# tests
|
|
pytestCheckHook,
|
|
}:
|
|
|
|
let
|
|
pname = "uasiren";
|
|
version = "0.0.1";
|
|
in
|
|
|
|
buildPythonPackage {
|
|
inherit pname version;
|
|
format = "setuptools";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "PaulAnnekov";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
hash = "sha256-NHrnG5Vhz+JZgcTJyfIgGz0Ye+3dFVv2zLCCqw2++oM=";
|
|
};
|
|
|
|
nativeBuildInputs = [ setuptools-scm ];
|
|
|
|
propagatedBuildInputs = [ aiohttp ];
|
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
|
|
|
pythonImportsCheck = [
|
|
"uasiren"
|
|
"uasiren.client"
|
|
];
|
|
|
|
meta = with lib; {
|
|
changelog = "https://github.com/PaulAnnekov/uasiren/releases/tag/v${version}";
|
|
description = "Implements siren.pp.ua API - public wrapper for api.ukrainealarm.com API that returns info about Ukraine air-raid alarms";
|
|
homepage = "https://github.com/PaulAnnekov/uasiren";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ hexa ];
|
|
};
|
|
}
|