cript0nauta / pynixify

Nix expression generator for Python projects
GNU General Public License v3.0
64 stars 11 forks source link

Error parsing requirements for wikitextparser #57

Open dvzubarev opened 2 years ago

dvzubarev commented 2 years ago
pynixify wikitextparser
Resolving wikitextparser
Error parsing requirements of /nix/store/190ccpx58ga9qym1x16z1f1sx2i9wym6-wikitextparser-0.48.0.tar.gz. Assuming it has no dependencies.
Error parsing requirements of /nix/store/190ccpx58ga9qym1x16z1f1sx2i9wym6-wikitextparser-0.48.0.tar.gz. Assuming it has no dependencies.
Error parsing metadata of /nix/store/190ccpx58ga9qym1x16z1f1sx2i9wym6-wikitextparser-0.48.0.tar.gz. Assuming it has no metadata.

But it worked ok in the previous version:

pynixify wikitextparser==0.47.9
Resolving wikitextparser==0.47.9
Resolving regex; python_version != "3.5" or platform_system != "Windows" (from PyPIPackage(attr=wikitextparser, version=0.47.9))
Resolving wcwidth (from PyPIPackage(attr=wikitextparser, version=0.47.9))

wikitextparser migrated to setup.cfg in the latest version (see commit ). But I thought pynixify can handle setup.cfg.

cript0nauta commented 2 years ago

At the moment, pynixify doesn't handle projects with setup.cfg, since it will always try to parse the project's setup.py file, As a workaround to make pynixify work with projects depending on wikitextparser, I'd recommend to manually package wikitextparser in nixpkgs. Then you will be able to use your project with pynixify, as it will use the version of nixpkgs.

Suggestion for packaging: you can use the output of pynixify wikitextparser==0.47.9 as a starting template for packaging. if you manually change the version and hashes in the generated file, that might work ok.

Let me know if you need any help with this workaround!