1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, click 5, ordered-set 6, clevercsv 7, jsonpickle 8, numpy 9, pytestCheckHook 10, pyyaml 11, toml 12, pythonOlder 13}: 14 15buildPythonPackage rec { 16 pname = "deepdiff"; 17 version = "6.2.1"; 18 format = "setuptools"; 19 20 disabled = pythonOlder "3.7"; 21 22 src = fetchFromGitHub { 23 owner = "seperman"; 24 repo = "deepdiff"; 25 rev = "refs/tags/${version}"; 26 hash = "sha256-AKah3A9srKm/cFWM7IiZ7JxQ8s0KTuh8VLKOymsDgnA="; 27 }; 28 29 postPatch = '' 30 substituteInPlace tests/test_command.py \ 31 --replace '/tmp/' "$TMPDIR/" 32 ''; 33 34 propagatedBuildInputs = [ 35 ordered-set 36 ]; 37 38 passthru.optional-dependencies = { 39 cli = [ 40 clevercsv 41 click 42 pyyaml 43 toml 44 ]; 45 }; 46 47 checkInputs = [ 48 jsonpickle 49 numpy 50 pytestCheckHook 51 ] ++ passthru.optional-dependencies.cli; 52 53 pythonImportsCheck = [ 54 "deepdiff" 55 ]; 56 57 meta = with lib; { 58 description = "Deep Difference and Search of any Python object/data"; 59 homepage = "https://github.com/seperman/deepdiff"; 60 changelog = "https://github.com/seperman/deepdiff/releases/tag/${version}"; 61 license = licenses.mit; 62 maintainers = with maintainers; [ mic92 ]; 63 }; 64}