Files
nixpkgs/pkgs/development/python-modules/gphoto2/default.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

49 lines
908 B
Nix

{
lib,
fetchFromGitHub,
buildPythonPackage,
pkg-config,
libgphoto2,
pytestCheckHook,
setuptools,
toml,
}:
buildPythonPackage rec {
pname = "gphoto2";
version = "2.6.2";
pyproject = true;
src = fetchFromGitHub {
owner = "jim-easterbrook";
repo = "python-gphoto2";
tag = "v${version}";
hash = "sha256-Z480HR9AlwJQI1yi8+twzHV9PMcTKWqtvoNw6ohV+6M=";
};
build-system = [
setuptools
toml
];
nativeBuildInputs = [
pkg-config
];
buildInputs = [ libgphoto2 ];
nativeCheckInputs = [
pytestCheckHook
];
pythonImportsCheck = [ "gphoto2" ];
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 = lib.licenses.lgpl3Plus;
maintainers = [ ];
};
}