1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4 #, pytestCheckHook 5, pythonOlder 6, pkg-config 7, gammu 8}: 9 10buildPythonPackage rec { 11 pname = "python-gammu"; 12 version = "3.2.4"; 13 format = "setuptools"; 14 15 disabled = pythonOlder "3.5"; 16 17 src = fetchFromGitHub { 18 owner = "gammu"; 19 repo = pname; 20 rev = version; 21 sha256 = "sha256-lFQBrKWwdvUScwsBva08izZVeVDn1u+ldzixtL9YTpA="; 22 }; 23 24 nativeBuildInputs = [ 25 pkg-config 26 ]; 27 28 buildInputs = [ 29 gammu 30 ]; 31 32 # Check with the next release if tests could be run with pytest 33 # checkInputs = [ pytestCheckHook ]; 34 # Don't run tests for now 35 doCheck = false; 36 37 pythonImportsCheck = [ 38 "gammu" 39 ]; 40 41 meta = with lib; { 42 description = "Python bindings for Gammu"; 43 homepage = "https://github.com/gammu/python-gammu/"; 44 license = with licenses; [ gpl2Plus ]; 45 maintainers = with maintainers; [ fab ]; 46 }; 47}