1{ 2 lib, 3 fetchPypi, 4 buildPythonPackage, 5 pkg-config, 6 libgphoto2, 7 setuptools, 8 toml, 9}: 10 11buildPythonPackage rec { 12 pname = "gphoto2"; 13 version = "2.5.1"; 14 pyproject = true; 15 16 src = fetchPypi { 17 inherit pname version; 18 hash = "sha256-Jgh7ff+iUaeNQtBsXw2Jm+2gj1ctvrY3oahGrbxx3uE="; 19 }; 20 21 nativeBuildInputs = [ 22 pkg-config 23 setuptools 24 toml 25 ]; 26 27 buildInputs = [ libgphoto2 ]; 28 29 doCheck = false; # No tests available 30 31 pythonImportsCheck = [ "gphoto2" ]; 32 33 meta = with lib; { 34 description = "Python interface to libgphoto2"; 35 homepage = "https://github.com/jim-easterbrook/python-gphoto2"; 36 license = licenses.gpl3; 37 maintainers = [ ]; 38 }; 39}