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