nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{ lib
2, buildPythonPackage
3, fetchFromGitHub
4, click
5, ordered-set
6, clevercsv
7, jsonpickle
8, numpy
9, pytestCheckHook
10, pyyaml
11, pythonOlder
12}:
13
14buildPythonPackage rec {
15 pname = "deepdiff";
16 version = "5.8.2";
17 format = "setuptools";
18
19 disabled = pythonOlder "3.6";
20
21 src = fetchFromGitHub {
22 owner = "seperman";
23 repo = "deepdiff";
24 rev = "v${version}";
25 hash = "sha256-7eagu6lef5bc/4KU3y067LFOGtH6whda1ocBuRHS/kI=";
26 };
27
28 postPatch = ''
29 substituteInPlace requirements.txt \
30 --replace "ordered-set==4.0.2" "ordered-set"
31 substituteInPlace tests/test_command.py \
32 --replace '/tmp/' "$TMPDIR/"
33 '';
34
35 propagatedBuildInputs = [
36 click
37 ordered-set
38 ];
39
40 pythonImportsCheck = [
41 "deepdiff"
42 ];
43
44 checkInputs = [
45 clevercsv
46 jsonpickle
47 numpy
48 pytestCheckHook
49 pyyaml
50 ];
51
52 meta = with lib; {
53 description = "Deep Difference and Search of any Python object/data";
54 homepage = "https://github.com/seperman/deepdiff";
55 license = licenses.mit;
56 maintainers = with maintainers; [ mic92 ];
57 };
58}