error: attribute ‘asteval’ missing, at (string):4:38
So my question becomes “How to add a python dependency not (anymore) in the official nixpkgs ?” and I will change the thread title to reflect this.
Further questions that could have answers already in the manual (JFTR again):
Is there something I can do with using overlays here and also, is there an overlay some of you know currently providing asteval packaged ?
In case not, what approbriate steps could I undertake ? Adding the package to the nixpkgs collection ?
Also where can I find out what fetchPypi is supposed to do ? I had some misunderstandings as interpreted one of it’s purposes being to load python packages also those not on nixpkgs in a derivation. Is that the case ?
(thx @FRidh )
One approach I’ll try is to wrap the asteval package sources in a fetchPypi closure and use the resulting derivation in my jrnl derivation then.
Executing setuptoolsBuildPhase
Traceback (most recent call last):
File “nix_run_setup”, line 8, in
exec(compile(getattr(tokenize, ‘open’, open)(file).read().replace(’\r\n’, ‘\n’), file, ‘exec’))
File “/nix/store/c8qshsnmy5d9xk3nxj2xy9xc4isnc7ni-python3-3.6.9/lib/python3.6/tokenize.py”, line 452, in open
buffer = _builtin_open(filename, ‘rb’)
FileNotFoundError: [Errno 2] No such file or directory: ‘setup.py’
killing process 31602: No such process
builder for ‘/nix/store/863kkav84dhpiy5pmi2zxnrlkq34lsq6-jrnl-2.3.drv’ failed with exit code 1
error: build of ‘/nix/store/863kkav84dhpiy5pmi2zxnrlkq34lsq6-jrnl-2.3.drv’ failed
jrnl seems to be built though stuck at installing…
wrapping `/nix/store/z7kmxqigshc8hwgfp43p7h672hadyz3g-jrnl-2.3/bin/jrnl’…
pythonCatchConflictsPhase
Found duplicated packages in closure for dependency ‘setuptools-scm’:
setuptools-scm 3.3.3 (/nix/store/k03sym20l725wghmx73lagq70i78wi84-setuptools_scm-3.3.3/lib/python3.6/site-packages)
setuptools-scm 3.3.3 (/nix/store/43gzhvj2gksqzyxpyqp84b2w3nd80r81-python3.6-setuptools_scm-3.3.3/lib/python3.6/site-packages)
Package duplicates found in closure, see above. Usually this happens if two packages depend on different version of the same dependency.
killing process 4961: No such process
builder for ‘/nix/store/13f5xfkx66iyd0qc1h1z8sr83pv4lpq6-jrnl-2.3.drv’ failed with exit code 1
error: build of ‘/nix/store/13f5xfkx66iyd0qc1h1z8sr83pv4lpq6-jrnl-2.3.drv’ failed
Still missing something…
jrnl is built now but installation fails:
Just removing the setuptools_scm “closure” or should I say derivation from my expression above resulted in a lucky build, only thing there is one error still, but that is something I could live with as I may use jrnl running /nix/store/7m0r7qhy8c9sm34qj596mizf5hlkdhk5-jrnl-2.3/bin/jrnl directly. Ugly but works!
Successfully installed jrnl-2.3
/tmp/nix-build-jrnl-2.3.drv-0/jrnl-2.3
Finished executing pipInstallPhase
post-installation fixup
shrinking RPATHs of ELF executables and libraries in /nix/store/7m0r7qhy8c9sm34qj596mizf5hlkdhk5-jrnl-2.3
strip is /nix/store/ajrrkivdfvp8dp4vdg5hp1h5hblmanc9-binutils-2.31.1/bin/strip
stripping (with command strip and flags -S) in /nix/store/7m0r7qhy8c9sm34qj596mizf5hlkdhk5-jrnl-2.3/lib /nix/store/7m0r7qhy8c9sm34qj596mizf5hlkdhk5-jrnl-2.3/bin
patching script interpreter paths in /nix/store/7m0r7qhy8c9sm34qj596mizf5hlkdhk5-jrnl-2.3
checking for references to /tmp/nix-build-jrnl-2.3.drv-0/ in /nix/store/7m0r7qhy8c9sm34qj596mizf5hlkdhk5-jrnl-2.3…
Rewriting #!/nix/store/8a73adngr6j974nv3scsnbsi47gn4i81-python3-3.6.9/bin/python3.6 to #!/nix/store/8a73adngr6j974nv3scsnbsi47gn4i81-python3-3.6.9
wrapping `/nix/store/7m0r7qhy8c9sm34qj596mizf5hlkdhk5-jrnl-2.3/bin/jrnl’…
pythonCatchConflictsPhase
pythonRemoveBinBytecodePhase
pythonImportsCheckPhase
Executing pythonImportsCheckPhase
killing process 6002: No such process
error: opening file ‘/nix/store/7m0r7qhy8c9sm34qj596mizf5hlkdhk5-jrnl-2.3/default.nix’: No such file or directory