blob: 50ea60c8caa37c1500f4cda87fa0db54cf520cd3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
|
{
lib,
fetchFromGitHub,
buildPythonPackage,
pkg-config,
libgphoto2,
pytestCheckHook,
setuptools,
toml,
}:
buildPythonPackage rec {
pname = "gphoto2";
version = "2.6.3";
pyproject = true;
src = fetchFromGitHub {
owner = "jim-easterbrook";
repo = "python-gphoto2";
tag = "v${version}";
hash = "sha256-inxKfZ/u7b9Kx1ytmEKJsK2PnnrhSI54A2Dm6Mtxnmc=";
};
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 = [ ];
};
}
|