Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
908 B · 48 lines
Nix
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849{ lib, fetchFromGitHub, buildPythonPackage, pkg-config, libgphoto2, pytestCheckHook, setuptools, toml,}:
buildPythonPackage rec { pname = "gphoto2"; version = "2.6.1"; pyproject = true;
src = fetchFromGitHub { owner = "jim-easterbrook"; repo = "python-gphoto2"; tag = "v${version}"; hash = "sha256-842otUAcPvwEfcXGNGhFReKbv6DykLNaEkMiN6j9/CM="; };
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 = [ ]; };}