1{ lib
2, buildPythonPackage
3, fetchFromGitHub
4, numpy
5, pythonOlder
6}:
7
8buildPythonPackage rec {
9 pname = "airtouch4pyapi";
10 version = "1.0.8";
11 format = "setuptools";
12
13 disabled = pythonOlder "3.6";
14
15 src = fetchFromGitHub {
16 owner = "LonePurpleWolf";
17 repo = pname;
18 rev = "refs/tags/v${version}";
19 hash = "sha256-RiRwebumidn0nijL/e9J74ZYx0DASi1up5BTNxYoGEA=";
20 };
21
22 propagatedBuildInputs = [
23 numpy
24 ];
25
26 # Project has no tests
27 doCheck = false;
28
29 pythonImportsCheck = [ "airtouch4pyapi" ];
30
31 meta = with lib; {
32 description = "Python API for Airtouch 4 controllers";
33 homepage = "https://github.com/LonePurpleWolf/airtouch4pyapi";
34 license = with licenses; [ mit ];
35 maintainers = with maintainers; [ fab ];
36 };
37}