567e8dfd8e
This commit was created by a combination of scripts and tools: - an ast-grep script to prefix things in meta with `lib.`, - a modified nixf-diagnose / nixf combination to remove unused `with lib;`, and - regular nixfmt. Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
34 lines
720 B
Nix
34 lines
720 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
isPy27,
|
|
fetchFromGitHub,
|
|
pytest,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "mergedeep";
|
|
version = "1.3.4";
|
|
format = "setuptools";
|
|
disabled = isPy27;
|
|
|
|
# PyPI tarball doesn't include tests directory
|
|
src = fetchFromGitHub {
|
|
owner = "clarketm";
|
|
repo = "mergedeep";
|
|
rev = "v${version}";
|
|
sha256 = "1msvvdzk33sxzgyvs4fs8dlsrsi7fjj038z83s0yw5h8m8d78469";
|
|
};
|
|
|
|
nativeCheckInputs = [ pytest ];
|
|
checkPhase = "pytest";
|
|
pythonImportsCheck = [ "mergedeep" ];
|
|
|
|
meta = {
|
|
homepage = "https://github.com/clarketm/mergedeep";
|
|
description = "Deep merge function for python";
|
|
license = lib.licenses.mit;
|
|
maintainers = with lib.maintainers; [ ris ];
|
|
};
|
|
}
|