nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 aiohttp,
4 xmltodict,
5 buildPythonPackage,
6 fetchFromGitHub,
7}:
8
9buildPythonPackage rec {
10 pname = "omnilogic";
11 version = "0.5.0";
12 format = "setuptools";
13
14 src = fetchFromGitHub {
15 owner = "djtimca";
16 repo = "omnilogic-api";
17 tag = version;
18 hash = "sha256-ySK2T5T+Qdq8nVQqluIARR89KmM1N3oD44oLydwcs7E=";
19 };
20
21 propagatedBuildInputs = [
22 aiohttp
23 xmltodict
24 ];
25
26 # Project has no tests
27 doCheck = false;
28
29 pythonImportsCheck = [ "omnilogic" ];
30
31 meta = {
32 description = "Python interface for the Hayward Omnilogic pool control system";
33 homepage = "https://github.com/djtimca/omnilogic-api";
34 license = with lib.licenses; [ asl20 ];
35 maintainers = with lib.maintainers; [ fab ];
36 };
37}