Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 21.05 38 lines 843 B view raw
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.1"; 13 disabled = pythonOlder "3.5"; 14 15 src = fetchFromGitHub { 16 owner = "gammu"; 17 repo = pname; 18 rev = version; 19 sha256 = "1hw2mfrps6wqfyi40p5mp9r59n1ick6pj4hw5njz0k822pbb33p0"; 20 }; 21 22 nativeBuildInputs = [ pkg-config ]; 23 24 buildInputs = [ gammu ]; 25 26 # Check with the next release if tests could be run with pytest 27 # checkInputs = [ pytestCheckHook ]; 28 # Don't run tests for now 29 doCheck = false; 30 pythonImportsCheck = [ "gammu" ]; 31 32 meta = with lib; { 33 description = "Python bindings for Gammu"; 34 homepage = "https://github.com/gammu/python-gammu/"; 35 license = with licenses; [ gpl2Plus ]; 36 maintainers = with maintainers; [ fab ]; 37 }; 38}