pynixify icon indicating copy to clipboard operation
pynixify copied to clipboard

Error parsing requirements for wikitextparser

Open dvzubarev opened this issue 3 years ago • 1 comments

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.

dvzubarev avatar Jan 10 '22 10:01 dvzubarev

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!

cript0nauta avatar Mar 08 '22 23:03 cript0nauta