biome: 1.9.2 -> 1.9.3 (#349335)
[NixPkgs.git] / pkgs / development / python-modules / pykoplenti / default.nix
blobcbca76c7467d501b292ecb424bae0c30681ed1d6
2   lib,
3   aiohttp,
4   buildPythonPackage,
5   click,
6   fetchFromGitHub,
7   prompt-toolkit,
8   pycryptodome,
9   pydantic,
10   pythonOlder,
11   setuptools,
14 buildPythonPackage rec {
15   pname = "pykoplenti";
16   version = "1.2.2";
17   pyproject = true;
19   disabled = pythonOlder "3.7";
21   src = fetchFromGitHub {
22     owner = "stegm";
23     repo = "pykoplenti";
24     rev = "refs/tags/v${version}";
25     hash = "sha256-2sGkHCIGo1lzLurvQBmq+16sodAaK8v+mAbIH/Gd3+E=";
26   };
28   pythonRelaxDeps = [ "pydantic" ];
30   nativeBuildInputs = [
31     setuptools
32   ];
34   propagatedBuildInputs = [
35     aiohttp
36     pycryptodome
37     pydantic
38   ];
40   optional-dependencies = {
41     CLI = [
42       click
43       prompt-toolkit
44     ];
45   };
47   # Project has no tests
48   doCheck = false;
50   pythonImportsCheck = [ "pykoplenti" ];
52   meta = with lib; {
53     description = "Python REST client API for Kostal Plenticore Inverters";
54     mainProgram = "pykoplenti";
55     homepage = "https://github.com/stegm/pykoplenti/";
56     changelog = "https://github.com/stegm/pykoplenti/releases/tag/v${version}";
57     license = with licenses; [ asl20 ];
58     maintainers = with maintainers; [ fab ];
59   };