From ae71e676abeacdb6d2978c3ec40f225cff4a09f7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nguy=E1=BB=85n=20Gia=20Phong?= Date: Fri, 29 Dec 2023 19:22:33 +0900 Subject: [PATCH] python3Packages.apted: init at 1.0.3 Co-authored-by: Arne Keller --- .../python-modules/apted/default.nix | 31 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 ++ 2 files changed, 33 insertions(+) create mode 100644 pkgs/development/python-modules/apted/default.nix diff --git a/pkgs/development/python-modules/apted/default.nix b/pkgs/development/python-modules/apted/default.nix new file mode 100644 index 0000000000000..d2f93ddd66162 --- /dev/null +++ b/pkgs/development/python-modules/apted/default.nix @@ -0,0 +1,31 @@ +{ + lib, + buildPythonPackage, + fetchFromGitHub, + setuptools, + unittestCheckHook, +}: + +buildPythonPackage rec { + pname = "apted"; + version = "1.0.3"; + pyproject = true; + + src = fetchFromGitHub { + owner = "JoaoFelipe"; + repo = "apted"; + rev = "828b3e3f4c053f7d35f0b55b0d5597e8041719ac"; + hash = "sha256-h8vJDC5TPpyhDxm1sHiXPegPB2eorEgyrNqzQOzSge8="; + }; + + build-system = [ setuptools ]; + pythonImportsCheck = [ "apted" ]; + nativeCheckInputs = [ unittestCheckHook ]; + + meta = { + description = "APTED algorithm for the Tree Edit Distance"; + homepage = "https://github.com/JoaoFelipe/apted"; + license = lib.licenses.mit; + maintainers = [ lib.maintainers.McSinyx ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 78a8674d3e1d4..7b4bd069a0b16 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -744,6 +744,8 @@ self: super: with self; { apt-repo = callPackage ../development/python-modules/apt-repo { }; + apted = callPackage ../development/python-modules/apted { }; + apycula = callPackage ../development/python-modules/apycula { }; aqipy-atmotech = callPackage ../development/python-modules/aqipy-atmotech { };