python3Packages.datadiff: migrate to pyproject (#543650)

This commit is contained in:
Michael Daniels
2026-07-20 01:55:37 +00:00
committed by GitHub

View File

@@ -2,27 +2,39 @@
lib,
buildPythonPackage,
fetchPypi,
setuptools,
pytestCheckHook,
six,
}:
buildPythonPackage rec {
buildPythonPackage (finalAttrs: {
pname = "datadiff";
version = "2.2.0";
format = "setuptools";
pyproject = true;
src = fetchPypi {
inherit pname version;
inherit (finalAttrs) pname version;
hash = "sha256-fOcN/uqMM/HYjbRrDv/ukFzDa023Ofa7BwqC3omB0ws=";
};
# Tests are not part of the PyPI releases
doCheck = false;
build-system = [ setuptools ];
nativeCheckInputs = [
pytestCheckHook
six
];
pythonImportsCheck = [ "datadiff" ];
disabledTests = [
# slice is an hashable type in recent python versions
"test_unhashable_type"
];
meta = {
description = "Library to provide human-readable diffs of Python data structures";
homepage = "https://sourceforge.net/projects/datadiff/";
license = lib.licenses.asl20;
maintainers = [ ];
};
}
})