My personal project and infrastructure archive
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
nomicon/pkgs/development/python-modules/deepdiff/default.nix

63 lines
1.2 KiB

{ lib
, buildPythonPackage
, fetchFromGitHub
, click
, ordered-set
, clevercsv
, jsonpickle
, numpy
, pytestCheckHook
, pyyaml
, pythonOlder
}:
buildPythonPackage rec {
pname = "deepdiff";
version = "5.8.2";
format = "setuptools";
disabled = pythonOlder "3.6";
src = fetchFromGitHub {
owner = "seperman";
repo = "deepdiff";
rev = "v${version}";
hash = "sha256-0UBx7sH2iMrLVl5FtHNTwoecLHi8GbInn75G3FSg4gk=";
};
postPatch = ''
substituteInPlace requirements.txt \
--replace "ordered-set==4.0.2" "ordered-set"
substituteInPlace tests/test_command.py \
--replace '/tmp/' "$TMPDIR/"
'';
propagatedBuildInputs = [
click
ordered-set
];
pythonImportsCheck = [
"deepdiff"
];
checkInputs = [
clevercsv
jsonpickle
numpy
pytestCheckHook
pyyaml
];
disabledTests = [
# Assertion issue with the decimal places
"test_get_numeric_types_distance"
];
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 ];
};
}