1{ lib
2, buildPythonPackage
3, colorama
4, fetchFromGitHub
5, packaging
6, poetry-core
7, pydantic
8, redis
9, structlog
10}:
11
12buildPythonPackage rec {
13 pname = "diffsync";
14 version = "1.8.0";
15 format = "pyproject";
16
17 src = fetchFromGitHub {
18 owner = "networktocode";
19 repo = "diffsync";
20 rev = "refs/tags/v${version}";
21 hash = "sha256-2OhckgJK1qimF0AcYSa8L+AkzfiN5VojWj0x6kwbgyk=";
22 };
23
24 nativeBuildInputs = [
25 poetry-core
26 ];
27
28 propagatedBuildInputs = [
29 colorama
30 packaging
31 pydantic
32 redis
33 structlog
34 ];
35
36 pythonImportsCheck = [
37 "diffsync"
38 ];
39
40 meta = with lib; {
41 description = "Utility library for comparing and synchronizing different datasets";
42 homepage = "https://github.com/networktocode/diffsync";
43 changelog = "https://github.com/networktocode/diffsync/blob/v${version}/CHANGELOG.md";
44 license = with licenses; [ asl20 ];
45 maintainers = with maintainers; [ clerie ];
46 };
47}