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

python3Packages.apted: init at 1.0.3 #277506

merged 1 commit into from
Dec 30, 2024

Conversation

McSinyx
Copy link
Member

@McSinyx McSinyx commented Dec 29, 2023

Description of changes

APTED is a Python library implementing the tree editing distance algorithm of the same name.

Things done

  • Built on platform(s)
    • x86_64-linux
    • aarch64-linux
    • x86_64-darwin
    • aarch64-darwin
  • For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)
    • sandbox = relaxed
    • sandbox = true
  • Tested, as applicable:
  • Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
  • Tested basic functionality of all binary files (usually in ./result/bin/)
  • 24.05 Release Notes (or backporting 23.05 and 23.11 Release notes)
    • (Package updates) Added a release notes entry if the change is major or breaking
    • (Module updates) Added a release notes entry if the change is significant
    • (Module addition) Added a release notes entry if adding a new NixOS module
  • Fits CONTRIBUTING.md.

@ofborg ofborg bot added 8.has: package (new) This PR adds a new package 11.by: package-maintainer This PR was created by the maintainer of the package it changes 10.rebuild-darwin: 1-10 10.rebuild-linux: 1-10 labels Dec 29, 2023
@dansbandit
Copy link
Contributor

Result of nixpkgs-review pr 277506 run on x86_64-darwin 1

4 packages built:
  • python310Packages.apted
  • python310Packages.apted.dist
  • python311Packages.apted
  • python311Packages.apted.dist

@wegank wegank added the 2.status: stale https://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md label Jul 4, 2024
@FliegendeWurst
Copy link
Member

@ofborg build python312Packages.apted

@stale stale bot removed the 2.status: stale https://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md label Nov 17, 2024
pkgs/development/python-modules/apted/default.nix Outdated Show resolved Hide resolved
@FliegendeWurst
Copy link
Member

I think using pyproject = true would be preferred

diff --git a/pkgs/development/python-modules/apted/default.nix b/pkgs/development/python-modules/apted/default.nix
index 9a5a9eb979a7..617b02719872 100644
--- a/pkgs/development/python-modules/apted/default.nix
+++ b/pkgs/development/python-modules/apted/default.nix
@@ -3,12 +3,13 @@
   buildPythonPackage,
   fetchFromGitHub,
   unittestCheckHook,
+  setuptools,
 }:
 
-buildPythonPackage rec {
+buildPythonPackage {
   pname = "apted";
   version = "1.0.3";
-  format = "setuptools";
+  pyproject = true;
 
   src = fetchFromGitHub {
     owner = "JoaoFelipe";
@@ -17,6 +18,10 @@ buildPythonPackage rec {
     hash = "sha256-h8vJDC5TPpyhDxm1sHiXPegPB2eorEgyrNqzQOzSge8=";
   };
 
+  build-system = [
+    setuptools
+  ];
+
   nativeCheckInputs = [ unittestCheckHook ];
 
   meta = with lib; {


build-system = [ setuptools ];
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.

@natsukium
Copy link
Member

nixpkgs-review result

Generated using nixpkgs-review.

Command: nixpkgs-review pr 277506


x86_64-linux

✅ 2 packages built:
  • python312Packages.apted
  • python313Packages.apted

aarch64-linux

✅ 2 packages built:
  • python312Packages.apted
  • python313Packages.apted

x86_64-darwin

✅ 2 packages built:
  • python312Packages.apted
  • python313Packages.apted

aarch64-darwin

✅ 2 packages built:
  • python312Packages.apted
  • python313Packages.apted

Copy link
Member

@natsukium natsukium left a comment

Choose a reason for hiding this comment

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

LGTM, thank you.

@natsukium natsukium merged commit 5000219 into NixOS:master Dec 30, 2024
23 of 24 checks passed
@McSinyx McSinyx deleted the apted branch December 30, 2024 04:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
6.topic: python 8.has: package (new) This PR adds a new package 10.rebuild-darwin: 1-10 10.rebuild-linux: 1-10 11.by: package-maintainer This PR was created by the maintainer of the package it changes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants