at master 883 B view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchPypi, 5 pythonOlder, 6 7 # build-system 8 setuptools, 9 10 # dependencies 11 bluepy, 12 cryptography, 13 14 # checks 15 pytestCheckHook, 16}: 17 18buildPythonPackage rec { 19 pname = "miauth"; 20 version = "0.9.7"; 21 pyproject = true; 22 23 disabled = pythonOlder "3.10"; 24 25 src = fetchPypi { 26 inherit pname version; 27 hash = "sha256-2/4nFInpdY8fb/b+sXhgT6ZPtEgBV+KHMyLnxIp6y/U="; 28 }; 29 30 build-system = [ setuptools ]; 31 32 pythonRelaxDeps = [ "cryptography" ]; 33 34 dependencies = [ 35 bluepy 36 cryptography 37 ]; 38 39 nativeCheckInputs = [ pytestCheckHook ]; 40 41 pythonImportsCheck = [ "miauth" ]; 42 43 meta = with lib; { 44 description = "Authenticate and interact with Xiaomi devices over BLE"; 45 homepage = "https://github.com/dnandha/miauth"; 46 license = licenses.agpl3Only; 47 maintainers = with maintainers; [ fab ]; 48 mainProgram = "miauth"; 49 }; 50}