about summary refs log tree commit diff
path: root/pkgs/development/python-modules/aiolip/default.nix
blob: 06c23bc68bea4748a1ea620941bf6c26e35ac33b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
{
  lib,
  buildPythonPackage,
  fetchFromGitHub,
  pytestCheckHook,
  setuptools,
  pythonOlder,
}:

buildPythonPackage rec {
  pname = "aiolip";
  version = "1.1.6";
  pyproject = true;
  disabled = pythonOlder "3.5";

  src = fetchFromGitHub {
    owner = "bdraco";
    repo = "aiolip";
    rev = version;
    sha256 = "1bgmcl8q1p6f2xm3w2qylvla6vf6bd1p2hfwj4l8w6w0w04vr02g";
  };

  build-system = [ setuptools ];

  nativeCheckInputs = [ pytestCheckHook ];

  postPatch = ''
    substituteInPlace setup.py --replace-fail "'pytest-runner'," ""
  '';

  pythonImportsCheck = [ "aiolip" ];

  meta = with lib; {
    description = "Python module for the Lutron Integration Protocol";
    homepage = "https://github.com/bdraco/aiolip";
    license = with licenses; [ asl20 ];
    maintainers = with maintainers; [ fab ];
  };
}