python3Packages.three-merge: migrate to pyproject (#547776)

This commit is contained in:
Yohann Boniface
2026-08-01 16:33:29 +00:00
committed by GitHub

View File

@@ -1,21 +1,32 @@
{
lib,
buildPythonPackage,
fetchPypi,
fetchFromGitHub,
setuptools,
diff-match-patch,
pytestCheckHook,
}:
buildPythonPackage rec {
buildPythonPackage (finalAttrs: {
pname = "three-merge";
version = "0.1.1";
format = "setuptools";
pyproject = true;
src = fetchPypi {
inherit pname version;
sha256 = "0w6rv7rv1zm901wbjkmm6d3vkwyf3csja9p37bb60mar8khszxk0";
__structuredAttrs = true;
# pypi does not contain test files
src = fetchFromGitHub {
owner = "spyder-ide";
repo = "three-merge";
tag = "v${finalAttrs.version}";
hash = "sha256-BtWgBOSddLB7mQoc8vhGKxBBkdnvyASyrwRLA7lGgrs=";
};
propagatedBuildInputs = [ diff-match-patch ];
build-system = [ setuptools ];
dependencies = [ diff-match-patch ];
nativeCheckInputs = [ pytestCheckHook ];
pythonImportsCheck = [ "three_merge" ];
@@ -25,4 +36,4 @@ buildPythonPackage rec {
license = lib.licenses.mit;
maintainers = [ ];
};
}
})