2021-03-09 03:18:52 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
#, pytestCheckHook
|
|
|
|
, pythonOlder
|
|
|
|
, pkg-config
|
|
|
|
, gammu
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "python-gammu";
|
2021-08-22 07:53:02 +00:00
|
|
|
version = "3.2.3";
|
2021-03-09 03:18:52 +00:00
|
|
|
disabled = pythonOlder "3.5";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "gammu";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2021-08-22 07:53:02 +00:00
|
|
|
sha256 = "sha256-MtFxKRE6CB/LZq9McMyYhjwfs/Rdke9gsNUqbOQdWYQ=";
|
2021-03-09 03:18:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ pkg-config ];
|
|
|
|
|
|
|
|
buildInputs = [ gammu ];
|
|
|
|
|
|
|
|
# Check with the next release if tests could be run with pytest
|
|
|
|
# checkInputs = [ pytestCheckHook ];
|
|
|
|
# Don't run tests for now
|
|
|
|
doCheck = false;
|
|
|
|
pythonImportsCheck = [ "gammu" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Python bindings for Gammu";
|
|
|
|
homepage = "https://github.com/gammu/python-gammu/";
|
|
|
|
license = with licenses; [ gpl2Plus ];
|
|
|
|
maintainers = with maintainers; [ fab ];
|
|
|
|
};
|
|
|
|
}
|