Unverified Commit c6d4ad52 authored by markuskowa's avatar markuskowa Committed by GitHub
Browse files

Merge pull request #263546 from sheepforce/tblite

python3Packages.tblite: fix toml-f 0.4 compatibility
parents c1a759b8 8173b255
Loading
Loading
Loading
Loading
+12 −2
Original line number Diff line number Diff line
{ buildPythonPackage
, fetchpatch
, meson
, ninja
, pkg-config
@@ -42,8 +43,17 @@ buildPythonPackage {

  propagatedBuildInputs = [ tblite simple-dftd3 cffi numpy ];


  patches = [
    # Add multicharge to the meson deps; otherwise we get missing mod_multicharge errors
  patches = [ ./0001-fix-multicharge-dep-needed-for-static-compilation.patch ];
    ./0001-fix-multicharge-dep-needed-for-static-compilation.patch

    # Toml-f 0.4.0 compatibility https://github.com/tblite/tblite/pull/108
    (fetchpatch {
      url = "https://github.com/tblite/tblite/commit/e4255519b58a5198a5fa8f3073bef1c78a4bbdbe.diff";
      hash = "sha256-BMwYsdWfK+vG3BFgzusLYfwo0WXrYSPxJoEJIyOvbPg=";
    })
  ];

  format = "other";
  pythonImportsCheck = [ "tblite" "tblite.interface" ];