at master 856 B view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 setuptools, 6 pyserial, 7 pythonOlder, 8}: 9 10buildPythonPackage rec { 11 pname = "ppk2-api"; 12 version = "0.9.2"; 13 pyproject = true; 14 15 disabled = pythonOlder "3.9"; 16 17 src = fetchFromGitHub { 18 owner = "IRNAS"; 19 repo = "ppk2-api-python"; 20 tag = "v${version}"; 21 hash = "sha256-fubDFtOXiv2YFYUCOUbuyXs1sHgs0/6ZVK9sAwxQ+Pk="; 22 }; 23 24 build-system = [ setuptools ]; 25 26 dependencies = [ pyserial ]; 27 28 # Module has no tests 29 doCheck = false; 30 31 pythonImportsCheck = [ "ppk2_api" ]; 32 33 meta = with lib; { 34 description = "Power Profiling Kit 2 unofficial Python API"; 35 homepage = "https://github.com/IRNAS/ppk2-api-python"; 36 changelog = "https://github.com/IRNAS/ppk2-api-python/releases/tag/v${version}"; 37 license = licenses.gpl2Only; 38 maintainers = with maintainers; [ fab ]; 39 }; 40}