2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
aiohttp,
|
|
|
|
buildPythonPackage,
|
|
|
|
click,
|
|
|
|
fetchFromGitHub,
|
|
|
|
prompt-toolkit,
|
|
|
|
pycryptodome,
|
|
|
|
pydantic,
|
|
|
|
pythonOlder,
|
|
|
|
setuptools,
|
2021-05-20 23:08:51 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pykoplenti";
|
2024-01-02 11:29:13 +00:00
|
|
|
version = "1.2.2";
|
2024-01-25 14:12:00 +00:00
|
|
|
pyproject = true;
|
2023-03-15 16:39:30 +00:00
|
|
|
|
2021-05-20 23:08:51 +00:00
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "stegm";
|
2024-01-25 14:12:00 +00:00
|
|
|
repo = "pykoplenti";
|
2023-03-15 16:39:30 +00:00
|
|
|
rev = "refs/tags/v${version}";
|
2024-01-02 11:29:13 +00:00
|
|
|
hash = "sha256-2sGkHCIGo1lzLurvQBmq+16sodAaK8v+mAbIH/Gd3+E=";
|
2021-05-20 23:08:51 +00:00
|
|
|
};
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
pythonRelaxDeps = [ "pydantic" ];
|
2024-01-25 14:12:00 +00:00
|
|
|
|
2023-03-15 16:39:30 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
setuptools
|
|
|
|
];
|
|
|
|
|
2021-05-20 23:08:51 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
aiohttp
|
|
|
|
pycryptodome
|
2024-01-02 11:29:13 +00:00
|
|
|
pydantic
|
2021-05-20 23:08:51 +00:00
|
|
|
];
|
|
|
|
|
2024-10-04 16:56:33 +00:00
|
|
|
optional-dependencies = {
|
2024-01-02 11:29:13 +00:00
|
|
|
CLI = [
|
|
|
|
click
|
|
|
|
prompt-toolkit
|
|
|
|
];
|
|
|
|
};
|
|
|
|
|
2021-05-20 23:08:51 +00:00
|
|
|
# Project has no tests
|
|
|
|
doCheck = false;
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
pythonImportsCheck = [ "pykoplenti" ];
|
2021-05-20 23:08:51 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Python REST client API for Kostal Plenticore Inverters";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "pykoplenti";
|
2021-05-20 23:08:51 +00:00
|
|
|
homepage = "https://github.com/stegm/pykoplenti/";
|
2024-01-25 14:12:00 +00:00
|
|
|
changelog = "https://github.com/stegm/pykoplenti/releases/tag/v${version}";
|
2021-05-20 23:08:51 +00:00
|
|
|
license = with licenses; [ asl20 ];
|
|
|
|
maintainers = with maintainers; [ fab ];
|
|
|
|
};
|
|
|
|
}
|