python312Packages.pydiffx: init at 1.1

This commit is contained in:
emaryn 2025-06-08 08:55:19 +08:00
parent 7fc19e7921
commit 47362b472a
2 changed files with 51 additions and 0 deletions

View File

@ -0,0 +1,47 @@
{
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 ];
};
}

View File

@ -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 { };