My personal project and infrastructure archive
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
nomicon/pkgs/development/python-modules/rxv/default.nix

58 lines
1.0 KiB

{ lib
, buildPythonPackage
, defusedxml
, fetchFromGitHub
, mock
, pytest-asyncio
, pytest-timeout
, pytest-vcr
, pytestCheckHook
, pythonOlder
, requests
, requests-mock
, setuptools-scm
}:
buildPythonPackage rec {
pname = "rxv";
version = "0.7.0";
format = "pyproject";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "wuub";
repo = pname;
rev = "v${version}";
sha256 = "0jldnlzbfg5jm1nbgv91mlvcqkswd9f2n3qj9aqlbmj1cxq19yz8";
};
SETUPTOOLS_SCM_PRETEND_VERSION = version;
nativeBuildInputs = [
setuptools-scm
];
propagatedBuildInputs = [
defusedxml
requests
];
checkInputs = [
mock
pytest-asyncio
pytest-timeout
pytest-vcr
pytestCheckHook
requests-mock
];
pythonImportsCheck = [ "rxv" ];
meta = with lib; {
description = "Python library for communicate with Yamaha RX-Vxxx receivers";
homepage = "https://github.com/wuub/rxv";
license = licenses.mit;
maintainers = with maintainers; [ flyfloh ];
};
}