1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 setuptools,
6 six,
7 pytestCheckHook,
8 kgb,
9}:
10
11buildPythonPackage rec {
12 pname = "pydiffx";
13 version = "1.1";
14 pyproject = true;
15
16 src = fetchFromGitHub {
17 owner = "beanbaginc";
18 repo = "diffx";
19 tag = "pydiffx/release-${version}";
20 hash = "sha256-oJjHrg1X02SmNJKbWbTPc0kycI+jLj0C4eUFFXwb+TA=";
21 };
22
23 sourceRoot = "${src.name}/python";
24
25 postPatch = ''
26 substituteInPlace pydiffx/tests/testcases.py \
27 --replace-fail "assertRaisesRegexp" "assertRaisesRegex"
28 '';
29
30 build-system = [ setuptools ];
31
32 dependencies = [ six ];
33
34 pythonImportsCheck = [ "pydiffx" ];
35
36 nativeCheckInputs = [
37 pytestCheckHook
38 kgb
39 ];
40
41 meta = {
42 description = "DiffX file format and utilities";
43 homepage = "https://github.com/beanbaginc/diffx";
44 license = lib.licenses.mit;
45 maintainers = with lib.maintainers; [ ];
46 };
47}