depot/third_party/nixpkgs/pkgs/development/python-modules/pykoplenti/default.nix
Default email 472aeafc57 Project import generated by Copybara.
GitOrigin-RevId: c31898adf5a8ed202ce5bea9f347b1c6871f32d1
2024-10-04 18:56:33 +02:00

60 lines
1.1 KiB
Nix

{
lib,
aiohttp,
buildPythonPackage,
click,
fetchFromGitHub,
prompt-toolkit,
pycryptodome,
pydantic,
pythonOlder,
setuptools,
}:
buildPythonPackage rec {
pname = "pykoplenti";
version = "1.2.2";
pyproject = true;
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "stegm";
repo = "pykoplenti";
rev = "refs/tags/v${version}";
hash = "sha256-2sGkHCIGo1lzLurvQBmq+16sodAaK8v+mAbIH/Gd3+E=";
};
pythonRelaxDeps = [ "pydantic" ];
nativeBuildInputs = [
setuptools
];
propagatedBuildInputs = [
aiohttp
pycryptodome
pydantic
];
optional-dependencies = {
CLI = [
click
prompt-toolkit
];
};
# Project has no tests
doCheck = false;
pythonImportsCheck = [ "pykoplenti" ];
meta = with lib; {
description = "Python REST client API for Kostal Plenticore Inverters";
mainProgram = "pykoplenti";
homepage = "https://github.com/stegm/pykoplenti/";
changelog = "https://github.com/stegm/pykoplenti/releases/tag/v${version}";
license = with licenses; [ asl20 ];
maintainers = with maintainers; [ fab ];
};
}