If a Python package does not come with either `format` or `pyproject` we consider it a setuptools build, that calls `setup.py` directly, which is deprecated. This change, as a first step, migrates a large chunk of these packages to set setuptools as their explicit format This is so we can unify the problem space for the next step of the migration.
33 lines
844 B
Nix
33 lines
844 B
Nix
{
|
|
lib,
|
|
openbabel,
|
|
python,
|
|
buildPythonPackage,
|
|
}:
|
|
|
|
buildPythonPackage {
|
|
format = "setuptools";
|
|
inherit (openbabel) pname version;
|
|
|
|
src = "${openbabel}/${python.sitePackages}";
|
|
|
|
buildInputs = [ openbabel ];
|
|
|
|
# these env variables are used by the bindings to find libraries
|
|
# they need to be included explicitly in your nix-shell for
|
|
# some functionality to work (inparticular, pybel).
|
|
# see https://openbabel.org/docs/dev/Installation/install.html
|
|
BABEL_LIBDIR = "${openbabel}/lib/openbabel/3.1.0";
|
|
LD_LIBRARY_PATH = "${openbabel}/lib";
|
|
|
|
doCheck = false;
|
|
pythonImportsCheck = [ "openbabel" ];
|
|
|
|
meta = with lib; {
|
|
homepage = "http://openbabel.org/wiki/Main_Page";
|
|
description = "Python bindings for openbabel";
|
|
license = licenses.gpl2Plus;
|
|
maintainers = with maintainers; [ danielbarter ];
|
|
};
|
|
}
|