summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/custom-json-diff/default.nix
blob: 40f3769fd8e1819134fb05423a06129870adba5a (plain)
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
{
  lib,
  buildPythonPackage,
  fetchFromGitHub,
  setuptools,
  jinja2,
  json-flatten,
  packageurl-python,
  semver,
  toml,
  pytestCheckHook,
}:

buildPythonPackage rec {
  pname = "custom-json-diff";
  version = "2.1.6";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "appthreat";
    repo = "custom-json-diff";
    tag = "v${version}";
    hash = "sha256-09kSj4fJHQHyzsCk0bSVlwAgkyzWOSjRKxU1rcMXacQ=";
  };

  build-system = [
    setuptools
  ];

  dependencies = [
    jinja2
    json-flatten
    packageurl-python
    semver
    toml
  ];

  nativeCheckInputs = [
    pytestCheckHook
  ];

  pythonImportsCheck = [
    "custom_json_diff"
  ];

  meta = {
    description = "Utility to compare json documents containing dynamically-generated fields";
    homepage = "https://github.com/appthreat/custom-json-diff";
    license = lib.licenses.asl20;
    maintainers = with lib.maintainers; [ ethancedwards8 ];
  };
}