openbabel-unstable: 3.1.1 -> unstable-06-12-23
This commit is contained in:
parent
971fbfd00a
commit
34a0ebd030
2 changed files with 10 additions and 9 deletions
|
@ -1,21 +1,21 @@
|
|||
{ stdenv, lib, fetchFromGitHub, cmake, zlib, libxml2, eigen, python, cairo, pcre, pkg-config, swig, rapidjson }:
|
||||
{ stdenv, lib, fetchFromGitHub, cmake, perl, zlib, libxml2, eigen, python, cairo, pcre, pkg-config, swig, rapidjson }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "openbabel";
|
||||
version = "3.1.1";
|
||||
version = "unstable-06-12-23";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "openbabel";
|
||||
repo = "openbabel";
|
||||
rev = "openbabel-${lib.replaceStrings ["."] ["-"] version}";
|
||||
sha256 = "sha256-wQpgdfCyBAoh4pmj9j7wPTlMtraJ62w/EShxi/olVMY=";
|
||||
repo = pname;
|
||||
rev = "32cf131444c1555c749b356dab44fb9fe275271f";
|
||||
hash = "sha256-V0wrZVrojCZ9Knc5H6cPzPoYWVosRZ6Sn4PX+UFEfHY=";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
sed '1i#include <ctime>' -i include/openbabel/obutil.h # gcc12
|
||||
'';
|
||||
|
||||
buildInputs = [ zlib libxml2 eigen python cairo pcre swig rapidjson ];
|
||||
buildInputs = [ perl zlib libxml2 eigen python cairo pcre swig rapidjson ];
|
||||
|
||||
nativeBuildInputs = [ cmake pkg-config ];
|
||||
|
||||
|
@ -26,13 +26,15 @@ stdenv.mkDerivation rec {
|
|||
"-DPYTHON_BINDINGS=ON"
|
||||
];
|
||||
|
||||
# Setuptools only accepts PEP 440 version strings. The "unstable" identifier
|
||||
# can not be used. Instead we pretend to be the 3.2 beta release.
|
||||
postFixup = ''
|
||||
cat <<EOF > $out/lib/python$pythonMajorMinor/site-packages/setup.py
|
||||
from distutils.core import setup
|
||||
|
||||
setup(
|
||||
name = 'pyopenbabel',
|
||||
version = '${version}',
|
||||
version = '3.2b1',
|
||||
packages = ['openbabel'],
|
||||
package_data = {'openbabel' : ['_openbabel.so']}
|
||||
)
|
||||
|
|
|
@ -1,8 +1,7 @@
|
|||
{ lib, openbabel, python, buildPythonPackage }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "openbabel";
|
||||
version = "3.1.1";
|
||||
inherit (openbabel) pname version;
|
||||
|
||||
src = "${openbabel}/lib/python${python.sourceVersion.major}.${python.sourceVersion.minor}/site-packages";
|
||||
|
||||
|
|
Loading…
Reference in a new issue