1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, asynctest 5, pytest-asyncio 6, pytestCheckHook 7}: 8 9buildPythonPackage rec { 10 pname = "dynalite-devices"; 11 version = "0.47"; 12 13 src = fetchFromGitHub { 14 owner = "ziv1234"; 15 repo = "python-dynalite-devices"; 16 rev = "refs/tags/v${version}"; # https://github.com/ziv1234/python-dynalite-devices/issues/2 17 hash = "sha256-kJo4e5vhgWzijLUhQd9VBVk1URpg9SXhOA60dJYashM="; 18 }; 19 20 postPatch = '' 21 sed -i '/^addopts/d' setup.cfg 22 ''; 23 24 checkInputs = [ 25 asynctest 26 pytest-asyncio 27 pytestCheckHook 28 ]; 29 30 pytestFlagsArray = [ 31 "--asyncio-mode=auto" 32 ]; 33 34 pythonImportsCheck = [ "dynalite_devices_lib" ]; 35 36 meta = with lib; { 37 description = "An unofficial Dynalite DyNET interface creating devices"; 38 homepage = "https://github.com/ziv1234/python-dynalite-devices"; 39 license = licenses.mit; 40 maintainers = with maintainers; [ dotlambda ]; 41 }; 42}