mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-11-27 00:10:12 +00:00
46 lines
958 B
Nix
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 = [ ];
|
|
};
|
|
}
|