Files
nixpkgs/pkgs/development/python-modules/diffsync/default.nix
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
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>
2025-12-10 18:09:49 +01:00

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 ];
};
}