Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{
2 lib,
3 buildPythonPackage,
4 fetchPypi,
5 lxml,
6 setuptools,
7 pytestCheckHook,
8}:
9
10buildPythonPackage rec {
11 pname = "xmldiff";
12 version = "2.7.0";
13 pyproject = true;
14
15 src = fetchPypi {
16 inherit pname version;
17 hash = "sha256-wJELH4ADZt1+xikj5dBuiwahvZEgVpocJ/TyRGucaKI=";
18 };
19
20 build-system = [ setuptools ];
21
22 dependencies = [
23 lxml
24 setuptools
25 ];
26
27 nativeCheckInputs = [ pytestCheckHook ];
28
29 disabledTests = [
30 # lxml 6.0 compat issue
31 "test_api_diff_texts"
32 ];
33
34 pythonImportsCheck = [ "xmldiff" ];
35
36 meta = {
37 description = "Creates diffs of XML files";
38 homepage = "https://github.com/Shoobx/xmldiff";
39 changelog = "https://github.com/Shoobx/xmldiff/blob/master/CHANGES.rst";
40 license = lib.licenses.mit;
41 maintainers = with lib.maintainers; [ sfrijters ];
42 };
43}