python3Packages.gphoto2: 2.5.1 -> 2.6.0 (#413415)

This commit is contained in:
dotlambda
2025-06-02 16:36:56 -07:00
committed by GitHub
@@ -1,39 +1,48 @@
{
lib,
fetchPypi,
fetchFromGitHub,
buildPythonPackage,
pkg-config,
libgphoto2,
pytestCheckHook,
setuptools,
toml,
}:
buildPythonPackage rec {
pname = "gphoto2";
version = "2.5.1";
version = "2.6.0";
pyproject = true;
src = fetchPypi {
inherit pname version;
hash = "sha256-Jgh7ff+iUaeNQtBsXw2Jm+2gj1ctvrY3oahGrbxx3uE=";
src = fetchFromGitHub {
owner = "jim-easterbrook";
repo = "python-gphoto2";
tag = "v${version}";
hash = "sha256-S/uMP2kRXJDetpXT4+MmCvb35xSxEbzhtKJ0PbHIOIU=";
};
nativeBuildInputs = [
pkg-config
build-system = [
setuptools
toml
];
nativeBuildInputs = [
pkg-config
];
buildInputs = [ libgphoto2 ];
doCheck = false; # No tests available
nativeCheckInputs = [
pytestCheckHook
];
pythonImportsCheck = [ "gphoto2" ];
meta = with lib; {
meta = {
changelog = "https://github.com/jim-easterbrook/python-gphoto2/blob/${src.tag}/CHANGELOG.txt";
description = "Python interface to libgphoto2";
homepage = "https://github.com/jim-easterbrook/python-gphoto2";
license = licenses.gpl3;
license = lib.licenses.lgpl3Plus;
maintainers = [ ];
};
}