Merge pull request #141338 from fabaff/bump-rxv
This commit is contained in:
commit
6edee84833
1 changed files with 28 additions and 17 deletions
|
@ -1,40 +1,51 @@
|
||||||
{ lib
|
{ lib
|
||||||
, buildPythonPackage
|
, buildPythonPackage
|
||||||
, fetchFromGitHub
|
|
||||||
, defusedxml
|
, defusedxml
|
||||||
, requests
|
, fetchFromGitHub
|
||||||
, pytest
|
|
||||||
, requests-mock
|
|
||||||
, mock
|
, mock
|
||||||
, pytest-cov
|
, pytest-asyncio
|
||||||
, pytest-timeout
|
, pytest-timeout
|
||||||
, testtools
|
, pytest-vcr
|
||||||
|
, pytestCheckHook
|
||||||
|
, pythonOlder
|
||||||
|
, requests
|
||||||
|
, requests-mock
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "rxv";
|
pname = "rxv";
|
||||||
version = "0.6.0";
|
version = "0.7.0";
|
||||||
|
format = "pyproject";
|
||||||
|
|
||||||
|
disabled = pythonOlder "3.7";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "wuub";
|
owner = "wuub";
|
||||||
repo = pname;
|
repo = pname;
|
||||||
# Releases are not tagged
|
rev = "v${version}";
|
||||||
rev = "9b586203665031f93960543a272bb1a8f541ed37";
|
sha256 = "0jldnlzbfg5jm1nbgv91mlvcqkswd9f2n3qj9aqlbmj1cxq19yz8";
|
||||||
sha256 = "1dw3ayrzknai2279bhkgzcapzw06rhijlny33rymlbp7irp0gvnj";
|
|
||||||
};
|
};
|
||||||
|
|
||||||
propagatedBuildInputs = [ defusedxml requests ];
|
propagatedBuildInputs = [
|
||||||
|
defusedxml
|
||||||
|
requests
|
||||||
|
];
|
||||||
|
|
||||||
checkInputs = [ pytest requests-mock mock pytest-cov pytest-timeout testtools ];
|
checkInputs = [
|
||||||
checkPhase = ''
|
mock
|
||||||
pytest
|
pytest-asyncio
|
||||||
'';
|
pytest-timeout
|
||||||
|
pytest-vcr
|
||||||
|
pytestCheckHook
|
||||||
|
requests-mock
|
||||||
|
];
|
||||||
|
|
||||||
|
pythonImportsCheck = [ "rxv" ];
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "Automation Library for Yamaha RX-V473, RX-V573, RX-V673, RX-V773 receivers";
|
description = "Python library for communicate with Yamaha RX-Vxxx receivers";
|
||||||
homepage = "https://github.com/wuub/rxv";
|
homepage = "https://github.com/wuub/rxv";
|
||||||
license = licenses.mit;
|
license = licenses.mit;
|
||||||
maintainers = with maintainers; [ flyfloh ];
|
maintainers = with maintainers; [ flyfloh ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue