mirror of
https://github.com/CHN-beta/nixpkgs.git
synced 2026-01-15 12:30:26 +08:00
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>
52 lines
992 B
Nix
52 lines
992 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
colorama,
|
|
fetchFromGitHub,
|
|
packaging,
|
|
poetry-core,
|
|
pydantic,
|
|
redis,
|
|
structlog,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "diffsync";
|
|
version = "2.1.0";
|
|
format = "pyproject";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "networktocode";
|
|
repo = "diffsync";
|
|
tag = "v${version}";
|
|
hash = "sha256-UZpGWa/UjHXp6jD0fPNWTMl1DZ1AWmILRX/5XRIpLdE=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
poetry-core
|
|
];
|
|
|
|
pythonRelaxDeps = [
|
|
"packaging"
|
|
"structlog"
|
|
];
|
|
|
|
propagatedBuildInputs = [
|
|
colorama
|
|
packaging
|
|
pydantic
|
|
redis
|
|
structlog
|
|
];
|
|
|
|
pythonImportsCheck = [ "diffsync" ];
|
|
|
|
meta = {
|
|
description = "Utility library for comparing and synchronizing different datasets";
|
|
homepage = "https://github.com/networktocode/diffsync";
|
|
changelog = "https://github.com/networktocode/diffsync/blob/${src.tag}/CHANGELOG.md";
|
|
license = with lib.licenses; [ asl20 ];
|
|
maintainers = with lib.maintainers; [ clerie ];
|
|
};
|
|
}
|