Unverified Commit 6969c910 authored by Markus Kowalewski's avatar Markus Kowalewski Committed by GitHub
Browse files

python3Packages.libxc: init at 7.0.0 (#471599)

parents fd07006f 990a5022
Loading
Loading
Loading
Loading
+9 −1
Original line number Diff line number Diff line
@@ -2,6 +2,7 @@
  lib,
  stdenv,
  fetchFromGitLab,
  fetchpatch,
  cmake,
  gfortran,
  perl,
@@ -26,6 +27,14 @@ stdenv.mkDerivation rec {
    hash = versionHashes."${version}";
  };

  patches = [
    # Fix build with newer CMake versions
    (fetchpatch {
      url = "https://gitlab.com/libxc/libxc/-/commit/450202adb8a3d698841dca853f2999b1befd932e.patch";
      sha256 = "sha256-XDt7+TzszSu+X6/PS+T8Q9BP76+bAXC9FzkA6ueo/OA=";
    })
  ];

  # Timeout increase has already been included upstream in master.
  # Check upon updates if this can be removed.
  postPatch = ''
@@ -49,7 +58,6 @@ stdenv.mkDerivation rec {
  '';

  cmakeFlags = [
    "-DCMAKE_POLICY_VERSION_MINIMUM=3.5"
    "-DENABLE_FORTRAN=ON"
    "-DBUILD_SHARED_LIBS=ON"
    "-DENABLE_XHOST=OFF"
+34 −0
Original line number Diff line number Diff line
{
  buildPythonPackage,
  lib,
  libxc,
  setuptools,
  cmake,
  numpy,
}:

buildPythonPackage {
  inherit (libxc)
    pname
    version
    src
    patches
    meta
    nativeBuildInputs
    ;

  pyproject = true;

  build-system = [
    setuptools
    cmake
  ];

  dependencies = [
    numpy
  ];

  dontUseCmakeConfigure = true;

  pythonImportsCheck = [ "pylibxc" ];
}
+4 −0
Original line number Diff line number Diff line
@@ -8661,6 +8661,10 @@ self: super: with self; {
  libvirt = callPackage ../development/python-modules/libvirt { inherit (pkgs) libvirt; };
  libxc = callPackage ../by-name/li/libxc/python.nix {
    libxc = pkgs.libxc_7;
  };
  libxml2 =
    (toPythonModule (
      pkgs.libxml2.override {