pythonPackages.pyscf: init at 1.7.1#78872
pythonPackages.pyscf: init at 1.7.1#78872drewrisinger wants to merge 13 commits intoNixOS:masterfrom
Conversation
|
@GrahamcOfBorg build python3Packages.pyscf |
|
build fails, depending on PR #78871 (libcint) |
b4bdc1a to
4df9cd5
Compare
timokau
left a comment
There was a problem hiding this comment.
Looks pretty good to me, but there is one serious issue (wrong name for the library function) and one minor nitpick.
Python-based Simulations of Chemistry Framework. Requirement for qiskit-aqua.
4df9cd5 to
1703025
Compare
Exchange-correlation functionals with arbitrary order derivatives. Library dependency of pythonPackages.pyscf.
As far as I know, libcint is only used for PySCF, so this just corrects the build flags that it should have to build properly for that.
|
I'm not sure if this should be included in the main Nix repo. Right now the only reason for this package's existence is a plugin to |
|
@GrahamcOfBorg eval |
| ln -s ${lib.getLib xcfun}/lib/libxc.so ./pyscf/lib/deps/lib/libxcfun.so | ||
| substituteInPlace pyscf/rt/__init__.py --replace "from tdscf import *" "from pyscf.tdscf import *" | ||
| ''; | ||
|
|
| preBuild = '' | ||
| pushd pyscf/lib/build | ||
| make | ||
| popd | ||
| ''; |
There was a problem hiding this comment.
this should work as well
| preBuild = '' | |
| pushd pyscf/lib/build | |
| make | |
| popd | |
| ''; | |
| makeFlags = [ "-C pyscf/lib/build" ]; |
| # HACK: Move compiled libraries to test dir so pyscf import mechanism can find them | ||
| cp ./dist/tmpbuild/pyscf/pyscf/lib/*.so ./pyscf/lib/ |
There was a problem hiding this comment.
this might not be needed anymore, the pythonImportsCheck hook was patched so it would not change PWD to $out
|
@jonringer thoughts on above question? #78872 (comment) |
I think moving to the NUR is great for now. There is a lot going on with these package additions, and I'm not sure if either of us want to get it to that level of a "polished" shine. If you do want to re-open this for nixpkgs I'll be happy to review it :) |
|
Agreed, thanks. It's always felt like an ugly, difficult package to me, so I don't really mind removing it. Related: Would it be worth removing |
If burden of maintainership is low (I'm not super familiar with the oCaml nix ecosystem), then I would say leave it. Python packages are a pretty large maintainer burden due to how fluid most breaking changes are. |
|
Ack @jonringer. Wrong PR, I meant |
|
Statement still applies, doesn't look like an extreme burden. I would just leave Edit: I need to learn how to spell |
|
Future reference: moved to https://github.com/drewrisinger/nur-packages. |
Motivation for this change
Add dependency for upcoming qiskit-terra package #78772 @jonringer
Depends on #78871
Things done
sandboxinnix.confon non-NixOS linux)nix-shell -p nixpkgs-review --run "nixpkgs-review wip"./result/bin/)nix path-info -Sbefore and after)