nixpkgs/pkgs/development/python-modules/deepdiff/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

59 lines
1.0 KiB
Nix
Raw Normal View History

2020-01-28 22:42:51 +00:00
{ lib
, buildPythonPackage
, fetchFromGitHub
, click
2020-01-28 22:42:51 +00:00
, ordered-set
, clevercsv
, jsonpickle
2020-01-28 22:42:51 +00:00
, numpy
, pytestCheckHook
, pyyaml
, pythonOlder
2020-01-28 22:42:51 +00:00
}:
buildPythonPackage rec {
pname = "deepdiff";
version = "5.8.2";
format = "setuptools";
2020-01-28 22:42:51 +00:00
disabled = pythonOlder "3.6";
src = fetchFromGitHub {
owner = "seperman";
repo = "deepdiff";
rev = "v${version}";
hash = "sha256-7eagu6lef5bc/4KU3y067LFOGtH6whda1ocBuRHS/kI=";
2020-01-28 22:42:51 +00:00
};
postPatch = ''
substituteInPlace requirements.txt \
--replace "ordered-set==4.0.2" "ordered-set"
substituteInPlace tests/test_command.py \
--replace '/tmp/' "$TMPDIR/"
'';
propagatedBuildInputs = [
click
ordered-set
2020-01-28 22:42:51 +00:00
];
pythonImportsCheck = [
"deepdiff"
];
checkInputs = [
clevercsv
2020-01-28 22:42:51 +00:00
jsonpickle
numpy
pytestCheckHook
pyyaml
2020-01-28 22:42:51 +00:00
];
meta = with lib; {
description = "Deep Difference and Search of any Python object/data";
homepage = "https://github.com/seperman/deepdiff";
license = licenses.mit;
maintainers = with maintainers; [ mic92 ];
2020-01-28 22:42:51 +00:00
};
}