New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
openbabel: 2.4 -> 3.1.1 #107845
openbabel: 2.4 -> 3.1.1 #107845
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please squash the commits into one named openbabel: 2.4 -> 3.1.1
.
pkgs/development/libraries/openbabel/builder_python_bindings_enabled.sh
Outdated
Show resolved
Hide resolved
eaa462c
to
090a1ec
Compare
OK, all the changes suggested by @SuperSandro2000 have been made. Thanks for the feedback :D |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please orient your formatting on other packages in nixpkgs. It is not optional and makes reviewing packages easier if they all follow a somewhat uniform style.
All second round of changes have been made! I'll rebase once there are no further suggestions |
This is a semi-automatic executed nixpkgs-review which does not build all packages (e.g. lumo, tensorflow or pytorch) Result of 1 package marked as broken and skipped:
4 packages built:
The following issues got detected with the above build packages. python37Packages.openbabel-bindings: Zero tests run by pytest got detected: 'Ran 0 tests in 0.000s'
Zero tests run by pytest got detected: 'Ran 0 tests in 0.000s'
Zero tests run by pytest got detected: 'Ran 0 tests in 0.000s'
|
This is a semi-automatic executed nixpkgs-review which does not build all packages (e.g. lumo, tensorflow or pytorch) Result of 1 package failed to build and are new build failure:
7 packages built:
The following issues got detected with the above build packages. python37Packages.openbabel-bindings: Zero tests run by pytest got detected: 'Ran 0 tests in 0.000s'
Zero tests run by pytest got detected: 'Ran 0 tests in 0.000s'
Zero tests run by pytest got detected: 'Ran 0 tests in 0.000s'
|
c17c9c4
to
23683e2
Compare
seems like avogadro is no longer being maintained and has openbabel2 as a dependency. I revived the old openbabel nix expression and called it openbabel2 to feed into avogadro. Let me know what you think |
please fix conflicts :( |
Working on conflicts now 👍 |
72dc1d0
to
9bf6b78
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry that this takes so long. I hope this is the final around after which we can finally merge.
We are currently doing several treewide changes which sadly delay this PR a bit again. Sorry about that.
fdf084b
to
ca4b9e9
Compare
No need to apologize @SuperSandro2000, you are doing an amazing job! keep up the good work 👍. All changes have been made |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry I found another nit but after that LGTM
c75e5ae
to
d8b8ab6
Compare
This is a semi-automatic executed nixpkgs-review which is checked by a human on a best effort basis and does not build all packages (e.g. lumo, tensorflow or pytorch). Result of 4 packages built:
The following issues got detected with the above build packages. python37Packages.openbabel-bindings: Zero tests run by pytest got detected: 'Ran 0 tests in 0.000s'
Zero tests run by pytest got detected: 'Ran 0 tests in 0.000s'
Zero tests run by pytest got detected: 'Ran 0 tests in 0.000s'
|
d8b8ab6
to
197eace
Compare
Motivation for this change
In my current job, openbabel is used quite heavily. The current nixpkgs version is out of date, and doesn't include the python bindings which are heavily used in theoretical chemistry (in pymatgen, for example). I felt like my openbabel nix expressions might be useful for others.
Things done
pythonBindings ? True
, but as far as I am aware, openbabel is predominantly used as a python module these days. Moreover, there is no appreciable difference in compile time.from openbabel import openbabel
is working correctly, butfrom openbabel import pybel
needs some environment variables to be set as inopenbabel-bindings/default.nix
. I have been working around this by setting them explicitly in my working shell.nix. Fixing this would probably require a patch to openbabel itself.This is my first PR to nixpkgs, so any feedback and suggestions would be be greatly appreciated!
sandbox
innix.conf
on non-NixOS linux)nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
./result/bin/
)nix path-info -S
before and after)