summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/rxv/default.nix
blob: da84c55617160fa532a9aaa8e953eb3ff3ae680c (plain)
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
40
41
42
43
44
45
46
47
48
49
50
51
{
  lib,
  buildPythonPackage,
  defusedxml,
  fetchFromGitHub,
  mock,
  pytest-asyncio,
  pytest-timeout,
  pytest-vcr,
  pytestCheckHook,
  requests,
  requests-mock,
  setuptools-scm,
}:

buildPythonPackage rec {
  pname = "rxv";
  version = "0.7.0";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "wuub";
    repo = "rxv";
    rev = "v${version}";
    sha256 = "0jldnlzbfg5jm1nbgv91mlvcqkswd9f2n3qj9aqlbmj1cxq19yz8";
  };

  nativeBuildInputs = [ setuptools-scm ];

  propagatedBuildInputs = [
    defusedxml
    requests
  ];

  nativeCheckInputs = [
    mock
    pytest-asyncio
    pytest-timeout
    pytest-vcr
    pytestCheckHook
    requests-mock
  ];

  pythonImportsCheck = [ "rxv" ];

  meta = {
    description = "Python library for communicate with Yamaha RX-Vxxx receivers";
    homepage = "https://github.com/wuub/rxv";
    license = lib.licenses.mit;
  };
}