Files
nixpkgs/pkgs/development/python-modules/maxcube-api/default.nix
Kevin Amado f8a8cc7893 python3Packages.maxcube-api: fix updateScript
Assisted-by: Claude Code
2026-11-10 05:17:02 +00:00

46 lines
958 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
gitUpdater,
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "maxcube-api";
version = "0.4.3";
format = "setuptools";
src = fetchFromGitHub {
owner = "uebelack";
repo = "python-${pname}";
rev = "V${version}";
hash = "sha256-1Zu+sv0g2gbF2antSDJL6hh5cD8pdzzucJJie90LZoI=";
};
postPatch = ''
substituteInPlace setup.py --replace "license=license" "license='MIT'"
'';
nativeCheckInputs = [ pytestCheckHook ];
disabledTests = [
"testSendRadioMsgClosesConnectionOnErrorAndRetriesIfReusingConnection"
"testSendRadioMsgReusesConnection"
];
pythonImportsCheck = [
"maxcube"
"maxcube.cube"
];
passthru.updateScript = gitUpdater { rev-prefix = "V"; };
meta = {
description = "eQ-3/ELV MAX! Cube Python API";
homepage = "https://github.com/uebelack/python-maxcube-api";
license = lib.licenses.mit;
maintainers = [ ];
};
}