1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 setuptools, 6 jinja2, 7 json-flatten, 8 packageurl-python, 9 semver, 10 toml, 11 pytestCheckHook, 12}: 13 14buildPythonPackage rec { 15 pname = "custom-json-diff"; 16 version = "2.1.6"; 17 pyproject = true; 18 19 src = fetchFromGitHub { 20 owner = "appthreat"; 21 repo = "custom-json-diff"; 22 tag = "v${version}"; 23 hash = "sha256-09kSj4fJHQHyzsCk0bSVlwAgkyzWOSjRKxU1rcMXacQ="; 24 }; 25 26 build-system = [ 27 setuptools 28 ]; 29 30 dependencies = [ 31 jinja2 32 json-flatten 33 packageurl-python 34 semver 35 toml 36 ]; 37 38 nativeCheckInputs = [ 39 pytestCheckHook 40 ]; 41 42 pythonImportsCheck = [ 43 "custom_json_diff" 44 ]; 45 46 meta = { 47 description = "Utility to compare json documents containing dynamically-generated fields"; 48 homepage = "https://github.com/appthreat/custom-json-diff"; 49 license = lib.licenses.asl20; 50 maintainers = with lib.maintainers; [ ethancedwards8 ]; 51 }; 52}