Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

python3Packages.apted: init at 1.0.3 #277506

Merged
merged 1 commit into from
Dec 30, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 31 additions & 0 deletions pkgs/development/python-modules/apted/default.nix
Original file line number Diff line number Diff line change
@@ -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 ];

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you please add pythonImportsCheck for a mock test?
Besides this LGTM.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, I've added the import check.

meta = {
description = "APTED algorithm for the Tree Edit Distance";
homepage = "https://github.com/JoaoFelipe/apted";
license = lib.licenses.mit;
maintainers = [ lib.maintainers.McSinyx ];
};
}
2 changes: 2 additions & 0 deletions pkgs/top-level/python-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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 { };
Expand Down
Loading