1{ lib
2, buildPythonPackage
3, fetchFromGitHub
4, click
5, ordered-set
6, clevercsv
7, jsonpickle
8, numpy
9, pytestCheckHook
10, pyyaml
11}:
12
13buildPythonPackage rec {
14 pname = "deepdiff";
15 version = "5.6.0";
16 format = "setuptools";
17
18 # pypi source does not contain all fixtures required for tests
19 src = fetchFromGitHub {
20 owner = "seperman";
21 repo = "deepdiff";
22 rev = version;
23 sha256 = "sha256-ysaIeVefsTX7ZubOXaEzeS1kMyBp4/w3SHNFxsGVhzY=";
24 };
25
26 postPatch = ''
27 substituteInPlace tests/test_command.py \
28 --replace '/tmp/' "$TMPDIR/"
29 '';
30
31 propagatedBuildInputs = [
32 click
33 ordered-set
34 ];
35
36 pythonImportsCheck = [
37 "deepdiff"
38 ];
39
40 checkInputs = [
41 clevercsv
42 jsonpickle
43 numpy
44 pytestCheckHook
45 pyyaml
46 ];
47
48 meta = with lib; {
49 description = "Deep Difference and Search of any Python object/data";
50 homepage = "https://github.com/seperman/deepdiff";
51 license = licenses.mit;
52 maintainers = [ maintainers.mic92 ];
53 };
54}