python3Packages.raspyrfm-client: init at 1.2.8 (#434618)

This commit is contained in:
Martin Weinelt
2025-08-28 21:49:53 +02:00
committed by GitHub
3 changed files with 56 additions and 1 deletions
@@ -0,0 +1,52 @@
{
lib,
buildPythonPackage,
fetchFromGitHub,
setuptools,
rstr,
python,
}:
buildPythonPackage rec {
pname = "raspyrfm-client";
version = "1.2.8";
pyproject = true;
src = fetchFromGitHub {
owner = "markusressel";
repo = "raspyrfm-client";
tag = "v${version}";
hash = "sha256-WiL69bb4h8xVdMYxAVU0NHEfTWyW2NVR86zigsr5dmk=";
};
# while we may not actually be on master, the script needs a git branch to function
# and master here is better than beta or pre-alpha
postPatch = ''
substituteInPlace ./setup.py \
--replace-fail 'subprocess.check_output(["git", "rev-parse", "--abbrev-ref", "HEAD"])' '"master"' \
--replace-fail 'GIT_BRANCH.decode()' '"master"' \
--replace-fail 'GIT_BRANCH.rstrip()' '"master"'
'';
build-system = [ setuptools ];
pythonImportsCheck = [ "raspyrfm_client" ];
nativeCheckInputs = [ rstr ];
# pytestCheckHook does not auto detect the only test, run manually
checkPhase = ''
runHook preCheck
${python.interpreter} tests/automatic_tests.py
runHook postCheck
'';
meta = {
description = "Send rc signals with the RaspyRFM module";
homepage = "https://github.com/markusressel/raspyrfm-client";
changelog = "https://github.com/markusressel/raspyrfm-client/releases/tag/v${version}";
maintainers = with lib.maintainers; [ ethancedwards8 ];
};
}
@@ -4869,7 +4869,8 @@
];
"raspyrfm" =
ps: with ps; [
]; # missing inputs: raspyrfm-client
raspyrfm-client
];
"raven_rock_mfg" =
ps: with ps; [
];
+2
View File
@@ -15527,6 +15527,8 @@ self: super: with self; {
rarfile = callPackage ../development/python-modules/rarfile { inherit (pkgs) libarchive; };
raspyrfm-client = callPackage ../development/python-modules/raspyrfm-client { };
rasterio = callPackage ../development/python-modules/rasterio { };
ratarmount = callPackage ../development/python-modules/ratarmount { };