Merge pull request #289768 from fabaff/aiotankerkoenig
python311Packages.aiotankerkoenig: init at 0.4.1
This commit is contained in:
commit
942fc1a73b
3 changed files with 69 additions and 1 deletions
64
pkgs/development/python-modules/aiotankerkoenig/default.nix
Normal file
64
pkgs/development/python-modules/aiotankerkoenig/default.nix
Normal file
|
@ -0,0 +1,64 @@
|
|||
{ lib
|
||||
, aiohttp
|
||||
, aioresponses
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
, mashumaro
|
||||
, orjson
|
||||
, poetry-core
|
||||
, pytest-asyncio
|
||||
, pytestCheckHook
|
||||
, pythonOlder
|
||||
, syrupy
|
||||
, yarl
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "aiotankerkoenig";
|
||||
version = "0.4.1";
|
||||
pyproject = true;
|
||||
|
||||
disabled = pythonOlder "3.11";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "jpbede";
|
||||
repo = "aiotankerkoenig";
|
||||
rev = "refs/tags/v${version}";
|
||||
hash = "sha256-BB1Cy4Aji5m06LlNj03as4CWF8RcYKAYy4oxPomOP68=";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace pyproject.toml \
|
||||
--replace-fail "--cov" ""
|
||||
'';
|
||||
|
||||
nativeBuildInputs = [
|
||||
poetry-core
|
||||
];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
aiohttp
|
||||
mashumaro
|
||||
orjson
|
||||
yarl
|
||||
];
|
||||
|
||||
nativeCheckInputs = [
|
||||
aioresponses
|
||||
pytest-asyncio
|
||||
pytestCheckHook
|
||||
syrupy
|
||||
];
|
||||
|
||||
pythonImportsCheck = [
|
||||
"aiotankerkoenig"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Python module for interacting with tankerkoenig.de";
|
||||
homepage = "https://github.com/jpbede/aiotankerkoenig";
|
||||
changelog = "https://github.com/jpbede/aiotankerkoenig/releases/tag/v${version}";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ fab ];
|
||||
};
|
||||
}
|
|
@ -4914,7 +4914,8 @@
|
|||
tank-utility
|
||||
];
|
||||
"tankerkoenig" = ps: with ps; [
|
||||
]; # missing inputs: aiotankerkoenig
|
||||
aiotankerkoenig
|
||||
];
|
||||
"tapsaff" = ps: with ps; [
|
||||
]; # missing inputs: tapsaff
|
||||
"tasmota" = ps: with ps; [
|
||||
|
@ -6492,6 +6493,7 @@
|
|||
"tag"
|
||||
"tailscale"
|
||||
"tailwind"
|
||||
"tankerkoenig"
|
||||
"tasmota"
|
||||
"tautulli"
|
||||
"tcp"
|
||||
|
|
|
@ -415,6 +415,8 @@ self: super: with self; {
|
|||
|
||||
aiosyncthing = callPackage ../development/python-modules/aiosyncthing { };
|
||||
|
||||
aiotankerkoenig = callPackage ../development/python-modules/aiotankerkoenig { };
|
||||
|
||||
aiotractive = callPackage ../development/python-modules/aiotractive { };
|
||||
|
||||
aiounifi = callPackage ../development/python-modules/aiounifi { };
|
||||
|
|
Loading…
Reference in a new issue