Commit 47362b47 authored by emaryn's avatar emaryn
Browse files

python312Packages.pydiffx: init at 1.1

parent 7fc19e79
Loading
Loading
Loading
Loading
+47 −0
Original line number Diff line number Diff line
{
  lib,
  buildPythonPackage,
  fetchFromGitHub,
  setuptools,
  six,
  pytestCheckHook,
  kgb,
}:

buildPythonPackage rec {
  pname = "pydiffx";
  version = "1.1";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "beanbaginc";
    repo = "diffx";
    tag = "pydiffx/release-${version}";
    hash = "sha256-oJjHrg1X02SmNJKbWbTPc0kycI+jLj0C4eUFFXwb+TA=";
  };

  sourceRoot = "${src.name}/python";

  postPatch = ''
    substituteInPlace pydiffx/tests/testcases.py \
      --replace-fail "assertRaisesRegexp" "assertRaisesRegex"
  '';

  build-system = [ setuptools ];

  dependencies = [ six ];

  pythonImportsCheck = [ "pydiffx" ];

  nativeCheckInputs = [
    pytestCheckHook
    kgb
  ];

  meta = {
    description = "DiffX file format and utilities";
    homepage = "https://github.com/beanbaginc/diffx";
    license = lib.licenses.mit;
    maintainers = with lib.maintainers; [ emaryn ];
  };
}
+4 −0
Original line number Diff line number Diff line
@@ -6482,6 +6482,8 @@ self: super: with self; {
  horizon-eda = callPackage ../development/python-modules/horizon-eda { inherit (pkgs) horizon-eda; };
  housekeeping = callPackage ../development/python-modules/housekeeping { };
  howdoi = callPackage ../development/python-modules/howdoi { };
  hpack = callPackage ../development/python-modules/hpack { };
@@ -12377,6 +12379,8 @@ self: super: with self; {
  pydicom-seg = callPackage ../development/python-modules/pydicom-seg { };
  pydiffx = callPackage ../development/python-modules/pydiffx { };
  pydigiham = callPackage ../development/python-modules/pydigiham { };
  pydiscourse = callPackage ../development/python-modules/pydiscourse { };