nix-community / nixpkgs-pytools

Tools for removing the tedious nature of creating nixpkgs derivations [maintainer=@costrouc]
MIT License
45 stars 9 forks source link

python-prefix-modules: init #19

Open SomeoneSerge opened 1 year ago

SomeoneSerge commented 1 year ago

Based on https://github.com/SomeoneSerge/pkgs/tree/3f07a5c33ca96b9cd828db9ad32bed9893076402/python-packages/by-name/pr/prefix-python-modules

Tested, somewhat, on https://github.com/SomeoneSerge/pkgs/blob/1dda035b977ac42b0573a3038efb49f5ad5469df/python-packages/by-name/ra/raft/package.nix#L59-L65 and https://github.com/SomeoneSerge/pkgs/blob/1dda035b977ac42b0573a3038efb49f5ad5469df/python-packages/by-name/om/omnimotion/package.nix#L52-L58.

The generated diffs look like this:

https://github.com/princeton-vl/RAFT/commit/bc356c2e6498a431407d7e6cb8bb286fb1dd2ddb https://github.com/qianqianwang68/omnimotion/commit/c45d86053d841d55eba5f1209c04649a3f9b6495 https://github.com/facebookresearch/dino/commit/62772889892974b1eae1450c4be347d3aecf98bc

The script has a bunch of argparse options that I didn't write automated tests for... maybe I can rename them into --unsupported-$option or --experimental-$option. Or I can just leave them as is