1{ lib, fetchPypi, buildPythonPackage 2, pkg-config 3, libgphoto2 }: 4 5buildPythonPackage rec { 6 pname = "gphoto2"; 7 version = "2.3.0"; 8 9 src = fetchPypi { 10 inherit pname version; 11 sha256 = "a208264ed252a39b29a0b0f7ccc4c4ffb941398715aec84c3a547281a43c4eb8"; 12 }; 13 14 nativeBuildInputs = [ pkg-config ]; 15 16 buildInputs = [ libgphoto2 ]; 17 18 doCheck = false; # No tests available 19 20 meta = with lib; { 21 description = "Python interface to libgphoto2"; 22 homepage = "https://github.com/jim-easterbrook/python-gphoto2"; 23 license = licenses.gpl3; 24 maintainers = with maintainers; [ jfrankenau ]; 25 }; 26}