1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 pytestCheckHook, 6 pythonOlder, 7}: 8 9buildPythonPackage rec { 10 pname = "aiolip"; 11 version = "1.1.6"; 12 format = "setuptools"; 13 disabled = pythonOlder "3.5"; 14 15 src = fetchFromGitHub { 16 owner = "bdraco"; 17 repo = pname; 18 rev = version; 19 sha256 = "1bgmcl8q1p6f2xm3w2qylvla6vf6bd1p2hfwj4l8w6w0w04vr02g"; 20 }; 21 22 nativeCheckInputs = [ pytestCheckHook ]; 23 24 postPatch = '' 25 substituteInPlace setup.py --replace "'pytest-runner'," "" 26 ''; 27 28 pythonImportsCheck = [ "aiolip" ]; 29 30 meta = with lib; { 31 description = "Python module for the Lutron Integration Protocol"; 32 homepage = "https://github.com/bdraco/aiolip"; 33 license = with licenses; [ asl20 ]; 34 maintainers = with maintainers; [ fab ]; 35 }; 36}