about summary refs log tree commit diff
path: root/pkgs/development/python-modules/omnilogic/default.nix
blob: 96d0d7e19c6f3f93f00dda4b345b3b827ce0e388 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
{ lib
, aiohttp
, xmltodict
, buildPythonPackage
, fetchFromGitHub
}:

buildPythonPackage rec {
  pname = "omnilogic";
  version = "0.4.5";

  src = fetchFromGitHub {
    owner = "djtimca";
    repo = "omnilogic-api";
    rev = version;
    sha256 = "081awb0fl40b5ighc9yxfq1xkgxz7l5dvz5544hx965q2r20wvsg";
  };

  propagatedBuildInputs = [
    aiohttp
    xmltodict
  ];

  postPatch = ''
    # Is not used but still present in setup.py
    substituteInPlace setup.py --replace "'config'," ""
  '';

  # Project has no tests
  doCheck = false;
  pythonImportsCheck = [ "omnilogic" ];

  meta = with lib; {
    description = "Python interface for the Hayward Omnilogic pool control system";
    homepage = "https://github.com/djtimca/omnilogic-api";
    license = with licenses; [ asl20 ];
    maintainers = with maintainers; [ fab ];
  };
}