python3Packages.ukrainealarm: init at 0.0.1
This commit is contained in:
parent
cdb1067df4
commit
f7aaeb9355
58
pkgs/development/python-modules/ukrainealarm/default.nix
Normal file
58
pkgs/development/python-modules/ukrainealarm/default.nix
Normal file
|
@ -0,0 +1,58 @@
|
|||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
|
||||
# build time
|
||||
, setuptools-scm
|
||||
|
||||
# propagates
|
||||
, aiohttp
|
||||
|
||||
# tests
|
||||
, pytestCheckHook
|
||||
}:
|
||||
|
||||
let
|
||||
pname = "ukrainealarm";
|
||||
version = "0.0.1";
|
||||
in
|
||||
|
||||
buildPythonPackage {
|
||||
inherit pname version;
|
||||
format = "setuptools";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "PaulAnnekov";
|
||||
repo = pname;
|
||||
rev = "v${version}";
|
||||
hash = "sha256-0gsxXQiSkJIM/I0VYsjdCCB3NjPr6QJbD/rBkGrwtW8=";
|
||||
};
|
||||
|
||||
SETUPTOOLS_SCM_PRETEND_VERSION = version;
|
||||
|
||||
nativeBuildInputs = [
|
||||
setuptools-scm
|
||||
];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
aiohttp
|
||||
];
|
||||
|
||||
checkInputs = [
|
||||
pytestCheckHook
|
||||
];
|
||||
|
||||
pythonImportsCheck = [
|
||||
"ukrainealarm"
|
||||
"ukrainealarm.client"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
changelog = "https://github.com/PaulAnnekov/ukrainealarm/releases/tag/v${version}";
|
||||
description = "Implements api.ukrainealarm.com API that returns info about Ukraine air raid alarms";
|
||||
homepage = "https://github.com/PaulAnnekov/ukrainealarm";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ hexa ];
|
||||
};
|
||||
}
|
||||
|
|
@ -10579,6 +10579,8 @@ in {
|
|||
|
||||
ukpostcodeparser = callPackage ../development/python-modules/ukpostcodeparser { };
|
||||
|
||||
ukrainealarm = callPackage ../development/python-modules/ukrainealarm { };
|
||||
|
||||
umalqurra = callPackage ../development/python-modules/umalqurra { };
|
||||
|
||||
umap-learn = callPackage ../development/python-modules/umap-learn { };
|
||||
|
|
Loading…
Reference in a new issue