Unverified Commit ea8f888c authored by Fabian Affolter's avatar Fabian Affolter Committed by GitHub
Browse files

python313Packages.pydig: init at 0.4.0 (#508435)

parents 69a9650e 99b66784
Loading
Loading
Loading
Loading
+46 −0
Original line number Diff line number Diff line
{
  lib,
  buildPythonPackage,
  fetchFromGitHub,
  fetchpatch,
  pkgs,
  poetry-core,
  pytestCheckHook,
}:

buildPythonPackage (finalAttrs: {
  pname = "pydig";
  version = "0.4.0";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "leonsmith";
    repo = "pydig";
    tag = "v${finalAttrs.version}";
    hash = "sha256-bNGqIEGPcd/TSTSDs2nGxBh60QI7sXRX9A0NVYflqPc=";
  };

  patches = [
    # Switch to poetry-core, https://github.com/leonsmith/pydig/pull/21
    (fetchpatch {
      name = "switch-to-poetry-core.patch";
      url = "https://github.com/leonsmith/pydig/commit/6e8ad99494b16084974c799db9afa020f1741886.patch";
      hash = "sha256-KhVQICsR93n+EuCcGhj81lChB/gBSQWncg1PYyo0dlc=";
    })
  ];

  build-system = [ poetry-core ];

  dependencies = [ pkgs.dig ];

  nativeCheckInputs = [ pytestCheckHook ];

  pythonImportsCheck = [ "pydig" ];

  meta = {
    description = "Python wrapper library for the 'dig' command line tool";
    homepage = "https://github.com/leonsmith/pydig";
    license = lib.licenses.gpl3Only;
    maintainers = with lib.maintainers; [ fab ];
  };
})
+2 −0
Original line number Diff line number Diff line
@@ -13596,6 +13596,8 @@ self: super: with self; {
  pydiffx = callPackage ../development/python-modules/pydiffx { };
  pydig = callPackage ../development/python-modules/pydig { };
  pydigiham = callPackage ../development/python-modules/pydigiham { };
  pydiscourse = callPackage ../development/python-modules/pydiscourse { };