nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 buildPythonPackage,
4 defusedxml,
5 fetchFromGitHub,
6 mock,
7 pytest-asyncio,
8 pytest-timeout,
9 pytest-vcr,
10 pytestCheckHook,
11 requests,
12 requests-mock,
13 setuptools-scm,
14}:
15
16buildPythonPackage rec {
17 pname = "rxv";
18 version = "0.7.0";
19 pyproject = true;
20
21 src = fetchFromGitHub {
22 owner = "wuub";
23 repo = "rxv";
24 rev = "v${version}";
25 sha256 = "0jldnlzbfg5jm1nbgv91mlvcqkswd9f2n3qj9aqlbmj1cxq19yz8";
26 };
27
28 nativeBuildInputs = [ setuptools-scm ];
29
30 propagatedBuildInputs = [
31 defusedxml
32 requests
33 ];
34
35 nativeCheckInputs = [
36 mock
37 pytest-asyncio
38 pytest-timeout
39 pytest-vcr
40 pytestCheckHook
41 requests-mock
42 ];
43
44 pythonImportsCheck = [ "rxv" ];
45
46 meta = {
47 description = "Python library for communicate with Yamaha RX-Vxxx receivers";
48 homepage = "https://github.com/wuub/rxv";
49 license = lib.licenses.mit;
50 };
51}