nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 pytest-asyncio,
6 pytestCheckHook,
7 setuptools,
8 wheel,
9}:
10
11buildPythonPackage rec {
12 pname = "anthemav";
13 version = "1.4.2";
14 pyproject = true;
15
16 src = fetchFromGitHub {
17 owner = "nugget";
18 repo = "python-anthemav";
19 tag = "v${version}";
20 hash = "sha256-ZjAt4oODx09Qij0PwBvLCplSjwdBx2fReiwjmKhdPa0=";
21 };
22
23 nativeBuildInputs = [
24 setuptools
25 wheel
26 ];
27
28 nativeCheckInputs = [
29 pytest-asyncio
30 pytestCheckHook
31 ];
32
33 pythonImportsCheck = [ "anthemav" ];
34
35 meta = {
36 description = "Python asyncio module to interface with Anthem AVM and MRX receivers";
37 mainProgram = "anthemav_monitor";
38 homepage = "https://github.com/nugget/python-anthemav";
39 changelog = "https://github.com/nugget/python-anthemav/releases/tag/v${version}";
40 license = lib.licenses.mit;
41 maintainers = with lib.maintainers; [ fab ];
42 };
43}