1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 setuptools,
6 unittestCheckHook,
7}:
8
9buildPythonPackage {
10 pname = "apted";
11 version = "1.0.3";
12 pyproject = true;
13
14 src = fetchFromGitHub {
15 owner = "JoaoFelipe";
16 repo = "apted";
17 rev = "828b3e3f4c053f7d35f0b55b0d5597e8041719ac";
18 hash = "sha256-h8vJDC5TPpyhDxm1sHiXPegPB2eorEgyrNqzQOzSge8=";
19 };
20
21 build-system = [ setuptools ];
22 pythonImportsCheck = [ "apted" ];
23 nativeCheckInputs = [ unittestCheckHook ];
24
25 meta = {
26 description = "APTED algorithm for the Tree Edit Distance";
27 homepage = "https://github.com/JoaoFelipe/apted";
28 license = lib.licenses.mit;
29 maintainers = [ lib.maintainers.McSinyx ];
30 };
31}