Something went wrong. Try again.
Nix Packages collection & NixOS github.com/NixOS/nixpkgs
Something went wrong. Try again.
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758{ lib, bleak-retry-connector, bleak, buildPythonPackage, fetchFromGitHub, pycryptodome, pytest-asyncio, pytestCheckHook, setuptools,}:
buildPythonPackage (finalAttrs: { pname = "motionblindsble"; version = "0.1.4"; pyproject = true;
src = fetchFromGitHub { owner = "LennP"; repo = "motionblindsble"; tag = finalAttrs.version; hash = "sha256-UG8+hId743z3UIR6DcWuEgQCbKaY5CD+Bw8mqIeWscY="; };
postPatch = '' substituteInPlace setup.py \ --replace-fail "{{VERSION_PLACEHOLDER}}" "${finalAttrs.version}" '';
build-system = [ setuptools ];
dependencies = [ bleak bleak-retry-connector pycryptodome ];
nativeCheckInputs = [ pytest-asyncio pytestCheckHook ];
pythonImportsCheck = [ "motionblindsble" ];
disabledTests = [ # AssertionError "test_establish_connection" ];
meta = { description = "Module to interface with Motionblinds motors using Bluetooth Low Energy (BLE)"; homepage = "https://github.com/LennP/motionblindsble"; changelog = "https://github.com/LennP/motionblindsble/releases/tag/${finalAttrs.src.tag}"; license = lib.licenses.mit; maintainers = with lib.maintainers; [ fab ]; };})