Skip to content

pythonPackages.levenshtein: fix 0.18.1 build#168547

Closed
yuuyins wants to merge 5 commits intoNixOS:masterfrom
yuuyins:levenshtein
Closed

pythonPackages.levenshtein: fix 0.18.1 build#168547
yuuyins wants to merge 5 commits intoNixOS:masterfrom
yuuyins:levenshtein

Conversation

@yuuyins
Copy link
Contributor

@yuuyins yuuyins commented Apr 13, 2022

Description of changes

won't build after 7ed8ac0

substitute(): ERROR: file 'setup.cfg' does not exist

cc @mweinelt @fabaff

Things done
  • Built on platform(s)
    • x86_64-linux
    • aarch64-linux
    • x86_64-darwin
    • aarch64-darwin
  • For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
  • 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/)
  • 22.05 Release Notes (or backporting 21.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
    • (Release notes changes) Ran nixos/doc/manual/md-to-db.sh to update generated release notes
  • Fits CONTRIBUTING.md.

@github-actions github-actions bot added the 6.topic: python Python is a high-level, general-purpose programming language. label Apr 13, 2022
@yuuyins yuuyins force-pushed the levenshtein branch 3 times, most recently from 18c19b1 to 5c80c42 Compare April 13, 2022 22:15
@ofborg ofborg bot added the 8.has: package (new) This PR adds a new package label Apr 13, 2022
@ofborg ofborg bot requested a review from fabaff April 13, 2022 22:18
@ofborg ofborg bot added 10.rebuild-darwin: 1-10 This PR causes between 1 and 10 packages to rebuild on Darwin. 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux. labels Apr 13, 2022
@yuuyins
Copy link
Contributor Author

yuuyins commented Apr 14, 2022

#158881 won't build and is blocking

@ofborg ofborg bot requested a review from dotlambda April 14, 2022 01:04
description = "C-API of RapidFuzz, which can be used to extend RapidFuzz from separate packages";
homepage = "https://github.com/maxbachmann/rapidfuzz_capi";
license = licenses.mit;
maintainers = with maintainers; [ dotlambda ];
Copy link
Member

Choose a reason for hiding this comment

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

nope

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@dotlambda ? 28b65c3#diff-7051ba4a27a1aa6bb264875507a22237c6aaf3566a13335c6c96f76593be5314

i'm probably going to remove this file and wait for your pr to get merged

Copy link
Member

Choose a reason for hiding this comment

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

Oops, I meant to put this on the respective line in rapidfuzz-cpp

sha256 = "127mwjbyp2nfj846bxb3aajmhsgzfx4wfvizpnwb30yv2fcrpy7l";
};

pythonImportsCheck = [ "rapidfuzz_capi" ];
Copy link
Member

Choose a reason for hiding this comment

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

This also needs pytestCheckHook in checkInputs or a checkPhase.

Comment on lines +61 to +63
cmakeFlags = [
"-DCMAKE_MODULE_PATH=${python.pkgs.scikit-build}/${python.sitePackages}/skbuild/resources/cmake"
];
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
cmakeFlags = [
"-DCMAKE_MODULE_PATH=${python.pkgs.scikit-build}/${python.sitePackages}/skbuild/resources/cmake"
];


nativeBuildInputs = [
cmake
ninja
Copy link
Member

Choose a reason for hiding this comment

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

can be patched out or just left out if you use format = "setuptools"

homepage = "https://github.com/maxbachmann/Levenshtein";
license = licenses.gpl2Plus;
maintainers = with maintainers; [ fab ];
platforms = platforms.all;
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
platforms = platforms.all;

that's automatic for Python packages

@SuperSandro2000
Copy link
Member

already part of python-updates. Feel free to add yourself as maintainer there.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

6.topic: python Python is a high-level, general-purpose programming language. 8.has: package (new) This PR adds a new package 10.rebuild-darwin: 1-10 This PR causes between 1 and 10 packages to rebuild on Darwin. 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants