fluffychat: 1.22.1 -> 1.23.0 (#364091)
[NixPkgs.git] / pkgs / development / python-modules / pykoplenti / default.nix
blob3325d730aa64a4398dac1c14db9f902772f38e65
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.3.0";
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-6edlcjQvV+6q3/ytn9KR/IovduVREEQt8foE2lfsBko=";
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   };