Files
nixpkgs/pkgs/development/python-modules/python-gammu/default.nix
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

43 lines
890 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
#, pytestCheckHook
pythonOlder,
pkg-config,
gammu,
}:
buildPythonPackage rec {
pname = "python-gammu";
version = "3.2.4";
format = "setuptools";
disabled = pythonOlder "3.5";
src = fetchFromGitHub {
owner = "gammu";
repo = "python-gammu";
rev = version;
hash = "sha256-lFQBrKWwdvUScwsBva08izZVeVDn1u+ldzixtL9YTpA=";
};
nativeBuildInputs = [ pkg-config ];
buildInputs = [ gammu ];
# Check with the next release if tests could be run with pytest
# nativeCheckInputs = [ pytestCheckHook ];
# Don't run tests for now
doCheck = false;
pythonImportsCheck = [ "gammu" ];
meta = {
description = "Python bindings for Gammu";
homepage = "https://github.com/gammu/python-gammu/";
license = with lib.licenses; [ gpl2Plus ];
maintainers = with lib.maintainers; [ fab ];
};
}