python3Packages.wslink: init at 2.3.4#416458
Conversation
|
Re-running CI due to a odd failure fixed in #416448 |
There was a problem hiding this comment.
How about using sourceRoot = "${src.name}/python" ?
There was a problem hiding this comment.
Looks good in this case. However setting sourceRoot to subdir will not always work when the setup.py script requires files out of the subdir. e.g. in python3Packages.fenics-dolfinx,
nixpkgs/pkgs/development/python-modules/fenics-dolfinx/default.nix
Lines 71 to 73 in fd48718
pyproject wants to install a license file under ${src} out of ${src}/python,
https://github.com/FEniCS/dolfinx/blob/3be58ec98d266dcae6d57e16c725fa3328dd20d2/python/pyproject.toml#L61
thus setting sourceRoot = "${src.name}/python" will fail the build of python3Packages.fenics-dolfinx.
There was a problem hiding this comment.
May want to add a comment noting this
There was a problem hiding this comment.
Another concern about setting souce root via "${src.name}/python" is about the unpacked tarball source.
For example :
src = fetchurl {
url = "https://github.com/Kitware/wslink/archive/refs/tags/v2.3.4.tar.gz";
hash = "sha256-SybJvGZaVxvd57BWW3D4VQ/bHUB8Da0yEaPWS35CO+E=";
};
sourceRoot = "${src.name}/python";
# add missing version string to dist-info
postPatch = ''
sed -i "/name *= */a\ version='${version}'," setup.py
'';
will set sourceRoot = "v2.3.4.tar.gz/python" and result in build failure.
|
python3Packages.wslink: Internal server side implementation of trame
python dependency of vtk/trame.
Things done
nix.conf? (See Nix manual)sandbox = relaxedsandbox = truenix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/)Add a 👍 reaction to pull requests you find important.