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