1{ lib
2, buildPythonPackage
3, fetchFromGitHub
4, pytestCheckHook
5, pythonOlder
6}:
7
8buildPythonPackage rec {
9 pname = "aiolip";
10 version = "1.1.6";
11 disabled = pythonOlder "3.5";
12
13 src = fetchFromGitHub {
14 owner = "bdraco";
15 repo = pname;
16 rev = version;
17 sha256 = "1bgmcl8q1p6f2xm3w2qylvla6vf6bd1p2hfwj4l8w6w0w04vr02g";
18 };
19
20 nativeCheckInputs = [
21 pytestCheckHook
22 ];
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}