1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 setuptools,
6 pytestCheckHook,
7 pythonOlder,
8}:
9
10buildPythonPackage rec {
11 pname = "patiencediff";
12 version = "0.2.15";
13 format = "pyproject";
14
15 disabled = pythonOlder "3.7";
16
17 src = fetchFromGitHub {
18 owner = "breezy-team";
19 repo = "patiencediff";
20 tag = "v${version}";
21 hash = "sha256-SFu1oN1yE9tKeBgWhgWjDpR31AptGrls0D5kKQed+HI=";
22 };
23
24 nativeBuildInputs = [ setuptools ];
25
26 nativeCheckInputs = [ pytestCheckHook ];
27
28 pythonImportsCheck = [ "patiencediff" ];
29
30 meta = with lib; {
31 description = "C implementation of patiencediff algorithm for Python";
32 mainProgram = "patiencediff";
33 homepage = "https://github.com/breezy-team/patiencediff";
34 changelog = "https://github.com/breezy-team/patiencediff/releases/tag/v${version}";
35 license = licenses.gpl2Plus;
36 maintainers = with maintainers; [ wildsebastian ];
37 };
38}