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