Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
1.2 kB · 60 lines
Nix
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061{ lib, bleak-retry-connector, bleak, buildPythonPackage, fetchFromGitHub, pycryptodome, pytest-asyncio, pytestCheckHook, pythonOlder, setuptools,}:
buildPythonPackage rec { pname = "motionblindsble"; version = "0.1.3"; pyproject = true;
disabled = pythonOlder "3.9";
src = fetchFromGitHub { owner = "LennP"; repo = "motionblindsble"; tag = version; hash = "sha256-1dA3YTjoAhe+p5vk6Xb42a+rE63m2mn5iHhVV/6tlQ0="; };
postPatch = '' substituteInPlace setup.py \ --replace-fail "{{VERSION_PLACEHOLDER}}" "${version}" '';
build-system = [ setuptools ];
dependencies = [ bleak bleak-retry-connector pycryptodome ];
nativeCheckInputs = [ pytest-asyncio pytestCheckHook ];
pythonImportsCheck = [ "motionblindsble" ];
disabledTests = [ # AssertionError "test_establish_connection" ];
meta = with lib; { 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/${version}"; license = licenses.mit; maintainers = with maintainers; [ fab ]; };}