mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-07-21 16:11:22 +00:00
python3Packages.datadiff: migrate to pyproject (#543650)
This commit is contained in:
@@ -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 = [ ];
|
||||
};
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user