52 lines
1,005 B
Nix
52 lines
1,005 B
Nix
|
{
|
||
|
lib,
|
||
|
buildPythonPackage,
|
||
|
colorama,
|
||
|
fetchFromGitHub,
|
||
|
packaging,
|
||
|
poetry-core,
|
||
|
pydantic,
|
||
|
redis,
|
||
|
structlog,
|
||
|
}:
|
||
|
|
||
|
buildPythonPackage rec {
|
||
|
pname = "diffsync";
|
||
|
version = "2.0.1";
|
||
|
format = "pyproject";
|
||
|
|
||
|
src = fetchFromGitHub {
|
||
|
owner = "networktocode";
|
||
|
repo = "diffsync";
|
||
|
rev = "refs/tags/v${version}";
|
||
|
hash = "sha256-T3kcZcRm28WeXZTXBBCpaMxjgB0KmqvWO4gdILH5hCA=";
|
||
|
};
|
||
|
|
||
|
nativeBuildInputs = [
|
||
|
poetry-core
|
||
|
];
|
||
|
|
||
|
pythonRelaxDeps = [
|
||
|
"packaging"
|
||
|
"structlog"
|
||
|
];
|
||
|
|
||
|
propagatedBuildInputs = [
|
||
|
colorama
|
||
|
packaging
|
||
|
pydantic
|
||
|
redis
|
||
|
structlog
|
||
|
];
|
||
|
|
||
|
pythonImportsCheck = [ "diffsync" ];
|
||
|
|
||
|
meta = with lib; {
|
||
|
description = "Utility library for comparing and synchronizing different datasets";
|
||
|
homepage = "https://github.com/networktocode/diffsync";
|
||
|
changelog = "https://github.com/networktocode/diffsync/blob/v${version}/CHANGELOG.md";
|
||
|
license = with licenses; [ asl20 ];
|
||
|
maintainers = with maintainers; [ clerie ];
|
||
|
};
|
||
|
}
|