mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-08 05:54:24 +00:00
96c1f0e798
reuse actually can also be used as a python library: https://github.com/fsfe/reuse-tool/blob/main/src/reuse/__init__.py#L11-L12 This change allows composing a python with `reuse` in `PYTHONPATH`: ``` $(nix-build -E "with import ./. {}; (python3.withPackages (ps: [ps.reuse]))")/bin/python Python 3.11.5 (main, Aug 24 2023, 12:23:19) [GCC 12.3.0] on linux Type "help", "copyright", "credits" or "license" for more information. >>> import reuse >>> reuse.__doc__ 'reuse is a tool for compliance with the REUSE recommendations.\n\nAlthough the API is documented, it is **NOT** guaranteed stable between minor or\neven patch releases. The semantic versioning of this program pertains\nexclusively to the reuse CLI command. If you want to use reuse as a Python\nlibrary, you should pin reuse to an exact version.\n\nHaving given the above disclaimer, the API has been relatively stable\nnevertheless, and we (the maintainers) do make some efforts to not needlessly\nchange the public API.\n' ``` vs before: ``` ❯ $(nix-build -E "with import ./. {}; (python3.withPackages (_: [ reuse]))")/bin/python Python 3.11.5 (main, Aug 24 2023, 12:23:19) [GCC 12.3.0] on linux Type "help", "copyright", "credits" or "license" for more information. >>> import reuse Traceback (most recent call last): File "<stdin>", line 1, in <module> ModuleNotFoundError: No module named 'reuse' ``` |
||
---|---|---|
.. | ||
akku | ||
apk-tools | ||
apkg | ||
appimage-run | ||
appimagekit | ||
apt-dater | ||
apx | ||
cde | ||
checkinstall | ||
ciel | ||
clib | ||
comma | ||
conda | ||
createrepo_c | ||
deploy-rs | ||
disnix | ||
dnf5 | ||
dpkg | ||
elm-github-install | ||
emplace | ||
fortran-fpm | ||
fpm | ||
fusesoc | ||
gx | ||
harmonia | ||
holo-build | ||
home-manager | ||
libcomps | ||
libdnf | ||
librepo | ||
licensee | ||
microdnf | ||
micromamba | ||
morph | ||
mynewt-newt | ||
nfpm | ||
niff | ||
nix | ||
nix-bundle | ||
nix-doc | ||
nix-du | ||
nix-eval-jobs | ||
nix-index | ||
nix-pin | ||
nix-prefetch | ||
nix-prefetch-scripts | ||
nix-serve | ||
nix-simple-deploy | ||
nix-template | ||
nix-top | ||
nix-universal-prefetch | ||
nix-update | ||
nix-update-source | ||
nixpkgs-review | ||
nox | ||
npm-check-updates | ||
nvd | ||
opkg | ||
opkg-utils | ||
packagekit | ||
pacman | ||
pacup | ||
pdm | ||
pkg | ||
poetry | ||
poetry2conda | ||
protontricks | ||
repro-get | ||
rpm | ||
smlpkg | ||
wapm/cli | ||
xbps | ||
yarn-lock-converter |