nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 aiohttp,
3 buildPythonPackage,
4 fetchFromGitHub,
5 hatchling,
6 lib,
7 yarl,
8}:
9
10buildPythonPackage rec {
11 pname = "eheimdigital";
12 version = "1.2.0";
13 pyproject = true;
14
15 src = fetchFromGitHub {
16 owner = "autinerd";
17 repo = "eheimdigital";
18 tag = version;
19 hash = "sha256-Jg5jVJAH6y2yrospcPJwHc/B0yd5ZRSXC6T7gYk7Sxs=";
20 };
21
22 build-system = [ hatchling ];
23
24 dependencies = [
25 aiohttp
26 yarl
27 ];
28
29 pythonImportsCheck = [ "eheimdigital" ];
30
31 # upstream tests are dysfunctional
32 doCheck = false;
33
34 meta = {
35 changelog = "https://github.com/autinerd/eheimdigital/releases/tag/${src.tag}";
36 description = "Offers a Python API for the EHEIM Digital smart aquarium devices";
37 homepage = "https://github.com/autinerd/eheimdigital";
38 license = lib.licenses.mit;
39 maintainers = with lib.maintainers; [ dotlambda ];
40 };
41}