1{
2 lib,
3 buildPythonPackage,
4 click,
5 fetchFromGitHub,
6 parameterized,
7 pytestCheckHook,
8 pythonOlder,
9 setuptools-scm,
10}:
11
12buildPythonPackage rec {
13 pname = "moreorless";
14 version = "0.4.0";
15 format = "setuptools";
16
17 disabled = pythonOlder "3.8";
18
19 src = fetchFromGitHub {
20 owner = "thatch";
21 repo = "moreorless";
22 rev = "refs/tags/v${version}";
23 hash = "sha256-N11iqsxMGgzwW2QYeOoHQaR/aDEuoUnnd/2Mc5culN0=";
24 };
25
26 nativeBuildInputs = [ setuptools-scm ];
27
28 propagatedBuildInputs = [ click ];
29
30 nativeCheckInputs = [
31 parameterized
32 pytestCheckHook
33 ];
34
35 pythonImportsCheck = [ "moreorless" ];
36
37 pytestFlagsArray = [
38 "moreorless/tests/click.py"
39 "moreorless/tests/general.py"
40 "moreorless/tests/patch.py"
41 ];
42
43 meta = with lib; {
44 description = "Wrapper to make difflib.unified_diff more fun to use";
45 homepage = "https://github.com/thatch/moreorless/";
46 license = licenses.mit;
47 maintainers = with maintainers; [ fab ];
48 };
49}