python3Packages.three-merge: enable tests

This commit is contained in:
Harinn
2026-07-31 20:41:21 +07:00
parent 5c1c2a4250
commit 124549c98e

View File

@@ -1,9 +1,10 @@
{
lib,
buildPythonPackage,
fetchPypi,
fetchFromGitHub,
setuptools,
diff-match-patch,
pytestCheckHook,
}:
buildPythonPackage (finalAttrs: {
@@ -13,16 +14,20 @@ buildPythonPackage (finalAttrs: {
__structuredAttrs = true;
src = fetchPypi {
pname = "three-merge";
inherit (finalAttrs) version;
hash = "sha256-YPav4URZVWDWOuMmJTUbzvO5RzO1Trl4AKn+sPPZ2XA=";
# pypi does not contain test files
src = fetchFromGitHub {
owner = "spyder-ide";
repo = "three-merge";
tag = "v${finalAttrs.version}";
hash = "sha256-BtWgBOSddLB7mQoc8vhGKxBBkdnvyASyrwRLA7lGgrs=";
};
build-system = [ setuptools ];
dependencies = [ diff-match-patch ];
nativeCheckInputs = [ pytestCheckHook ];
pythonImportsCheck = [ "three_merge" ];
meta = {