Unverified Commit 4550aefe authored by dotlambda's avatar dotlambda Committed by GitHub
Browse files

python3Packages.gphoto2: 2.5.1 -> 2.6.0 (#413415)

parents 7062685b 4dc4df6a
Loading
Loading
Loading
Loading
+19 −10
Original line number Diff line number Diff line
{
  lib,
  fetchPypi,
  fetchFromGitHub,
  buildPythonPackage,
  pkg-config,
  libgphoto2,
  pytestCheckHook,
  setuptools,
  toml,
}:

buildPythonPackage rec {
  pname = "gphoto2";
  version = "2.5.1";
  version = "2.6.0";
  pyproject = true;

  src = fetchPypi {
    inherit pname version;
    hash = "sha256-Jgh7ff+iUaeNQtBsXw2Jm+2gj1ctvrY3oahGrbxx3uE=";
  src = fetchFromGitHub {
    owner = "jim-easterbrook";
    repo = "python-gphoto2";
    tag = "v${version}";
    hash = "sha256-S/uMP2kRXJDetpXT4+MmCvb35xSxEbzhtKJ0PbHIOIU=";
  };

  nativeBuildInputs = [
    pkg-config
  build-system = [
    setuptools
    toml
  ];

  nativeBuildInputs = [
    pkg-config
  ];

  buildInputs = [ libgphoto2 ];

  doCheck = false; # No tests available
  nativeCheckInputs = [
    pytestCheckHook
  ];

  pythonImportsCheck = [ "gphoto2" ];

  meta = with lib; {
  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 = licenses.gpl3;
    license = lib.licenses.lgpl3Plus;
    maintainers = [ ];
  };
}