2021-01-25 08:26:54 +00:00
|
|
|
{ lib, fetchPypi, buildPythonPackage
|
2021-01-19 06:50:56 +00:00
|
|
|
, pkg-config
|
2018-03-09 09:21:44 +00:00
|
|
|
, libgphoto2 }:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "gphoto2";
|
2020-11-10 19:02:07 +00:00
|
|
|
version = "2.2.4";
|
2018-03-09 09:21:44 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-11-10 19:02:07 +00:00
|
|
|
sha256 = "48b4c4ab70826d3ddaaf7440564d513c02d78680fa690994b0640d383ffb8a7d";
|
2018-03-09 09:21:44 +00:00
|
|
|
};
|
|
|
|
|
2021-01-19 06:50:56 +00:00
|
|
|
nativeBuildInputs = [ pkg-config ];
|
2018-03-09 09:21:44 +00:00
|
|
|
|
|
|
|
buildInputs = [ libgphoto2 ];
|
|
|
|
|
|
|
|
doCheck = false; # No tests available
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2018-03-09 09:21:44 +00:00
|
|
|
description = "Python interface to libgphoto2";
|
2020-02-26 22:27:55 +00:00
|
|
|
homepage = "https://github.com/jim-easterbrook/python-gphoto2";
|
2018-03-09 09:21:44 +00:00
|
|
|
license = licenses.gpl3;
|
|
|
|
maintainers = with maintainers; [ jfrankenau ];
|
|
|
|
};
|
|
|
|
}
|