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