2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchFromGitHub,
|
|
|
|
setuptools,
|
|
|
|
pytestCheckHook,
|
|
|
|
pythonOlder,
|
2022-10-21 18:38:19 +00:00
|
|
|
}:
|
2020-12-09 12:39:15 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "patiencediff";
|
2024-06-20 14:57:18 +00:00
|
|
|
version = "0.2.15";
|
2022-11-27 09:42:12 +00:00
|
|
|
format = "pyproject";
|
2020-12-09 12:39:15 +00:00
|
|
|
|
2022-10-21 18:38:19 +00:00
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "breezy-team";
|
|
|
|
repo = pname;
|
2022-12-02 08:20:57 +00:00
|
|
|
rev = "refs/tags/v${version}";
|
2024-06-20 14:57:18 +00:00
|
|
|
hash = "sha256-SFu1oN1yE9tKeBgWhgWjDpR31AptGrls0D5kKQed+HI=";
|
2020-12-09 12:39:15 +00:00
|
|
|
};
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
nativeBuildInputs = [ setuptools ];
|
2022-11-27 09:42:12 +00:00
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
2022-10-21 18:38:19 +00:00
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
pythonImportsCheck = [ "patiencediff" ];
|
2022-10-21 18:38:19 +00:00
|
|
|
|
2020-12-09 12:39:15 +00:00
|
|
|
meta = with lib; {
|
|
|
|
description = "C implementation of patiencediff algorithm for Python";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "patiencediff";
|
2020-12-09 12:39:15 +00:00
|
|
|
homepage = "https://github.com/breezy-team/patiencediff";
|
2022-12-17 10:02:37 +00:00
|
|
|
changelog = "https://github.com/breezy-team/patiencediff/releases/tag/v${version}";
|
2020-12-09 12:39:15 +00:00
|
|
|
license = licenses.gpl2Plus;
|
2022-10-21 18:38:19 +00:00
|
|
|
maintainers = with maintainers; [ wildsebastian ];
|
2020-12-09 12:39:15 +00:00
|
|
|
};
|
|
|
|
}
|