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