at master 787 B view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 6 # build-system 7 setuptools, 8 setuptools-scm, 9 10 # dependencies 11 pyyaml, 12 13 # tests 14 hypothesis, 15 pytestCheckHook, 16}: 17 18buildPythonPackage rec { 19 pname = "jsondiff"; 20 version = "2.2.1"; 21 pyproject = true; 22 23 src = fetchFromGitHub { 24 owner = "xlwings"; 25 repo = "jsondiff"; 26 tag = version; 27 hash = "sha256-0EnI7f5t7Ftl/8UcsRdA4iVQ78mxvPucCJjFJ8TMwww="; 28 }; 29 30 build-system = [ 31 setuptools 32 setuptools-scm 33 ]; 34 35 dependencies = [ pyyaml ]; 36 37 nativeCheckInputs = [ 38 hypothesis 39 pytestCheckHook 40 ]; 41 42 meta = { 43 description = "Diff JSON and JSON-like structures in Python"; 44 mainProgram = "jdiff"; 45 homepage = "https://github.com/ZoomerAnalytics/jsondiff"; 46 license = lib.licenses.mit; 47 }; 48}