2021-02-05 17:12:51 +00:00
|
|
|
{ lib, buildPythonPackage, isPy27, fetchFromGitHub, pytest }:
|
2020-09-25 04:45:31 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "mergedeep";
|
2021-03-19 17:17:44 +00:00
|
|
|
version = "1.3.4";
|
2020-09-25 04:45:31 +00:00
|
|
|
disabled = isPy27;
|
|
|
|
|
|
|
|
# PyPI tarball doesn't include tests directory
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "clarketm";
|
|
|
|
repo = "mergedeep";
|
|
|
|
rev = "v${version}";
|
2021-03-19 17:17:44 +00:00
|
|
|
sha256 = "1msvvdzk33sxzgyvs4fs8dlsrsi7fjj038z83s0yw5h8m8d78469";
|
2020-09-25 04:45:31 +00:00
|
|
|
};
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [ pytest ];
|
2020-09-25 04:45:31 +00:00
|
|
|
checkPhase = "pytest";
|
|
|
|
pythonImportsCheck = [ "mergedeep" ];
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-09-25 04:45:31 +00:00
|
|
|
homepage = "https://github.com/clarketm/mergedeep";
|
|
|
|
description = "A deep merge function for python";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ ris ];
|
|
|
|
};
|
|
|
|
}
|