nixpkgs/pkgs/development/python-modules/rxv/default.nix
Martin Weinelt 8056f9250c
treewide: remove redundant SETUPTOOLS_SCM_PRETEND_VERSION usage
The setuptools-scm packages gained a setup hook, that sets it to the
derivation version automatically, so setting it to that manually has
become redundant.

This also affects downstream consumers of setuptools-scm, like hatch-vcs
or flit-scm.
2023-12-20 20:16:39 +01:00

56 lines
986 B
Nix

{ 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";
};
nativeBuildInputs = [
setuptools-scm
];
propagatedBuildInputs = [
defusedxml
requests
];
nativeCheckInputs = [
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 ];
};
}