nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 aiohttp,
4 async-timeout,
5 buildPythonPackage,
6 click,
7 fetchFromGitHub,
8}:
9
10buildPythonPackage rec {
11 pname = "dingz";
12 version = "0.5.0";
13 format = "setuptools";
14
15 src = fetchFromGitHub {
16 owner = "home-assistant-ecosystem";
17 repo = "python-dingz";
18 rev = version;
19 hash = "sha256-bCytQwLWw8D1UkKb/3LQ301eDCkVR4alD6NHjTs6I+4=";
20 };
21
22 propagatedBuildInputs = [
23 aiohttp
24 async-timeout
25 click
26 ];
27
28 # Project has no tests
29 doCheck = false;
30
31 pythonImportsCheck = [ "dingz" ];
32
33 meta = {
34 description = "Python API for interacting with Dingz devices";
35 mainProgram = "dingz";
36 homepage = "https://github.com/home-assistant-ecosystem/python-dingz";
37 license = with lib.licenses; [ mit ];
38 maintainers = with lib.maintainers; [ fab ];
39 };
40}