Unverified Commit 0aab02e4 authored by Mario Rodas's avatar Mario Rodas Committed by GitHub
Browse files

Merge pull request #246497 from natsukium/meeko/update

python310Packages.meeko: 0.4.0 -> 0.5.0
parents 1d74c8f2 409982ac
Loading
Loading
Loading
Loading
+16 −6
Original line number Diff line number Diff line
{ lib
, buildPythonPackage
, fetchFromGitHub
, fetchpatch
, numpy
, pytestCheckHook
, pythonOlder
@@ -10,7 +11,7 @@

buildPythonPackage rec {
  pname = "meeko";
  version = "0.4.0";
  version = "0.5.0";
  format = "setuptools";

  disabled = pythonOlder "3.5";
@@ -19,13 +20,22 @@ buildPythonPackage rec {
    owner = "forlilab";
    repo = "Meeko";
    rev = "refs/tags/v${version}";
    hash = "sha256-BCkKRwz3jK5rNAMtKcGxuvfdIFxRRJpABcedyd1zSKE=";
    hash = "sha256-pngFu6M63W26P7wd6FUNLuf0NikxtRtVR/pnR5PR6Wo=";
  };

  postPatch = ''
    substituteInPlace setup.py \
      --replace "python_requires='>=3.5.*'" "python_requires='>=3.5'"
  '';
  patches = [
    # https://github.com/forlilab/Meeko/issues/60
    (fetchpatch {
      name = "fix-unknown-sidechains.patch";
      url = "https://github.com/forlilab/Meeko/commit/28c9fbfe3b778aa1bd5e8d7e4f3e6edf44633a0c.patch";
      hash = "sha256-EJbLnbKTTOsTxKtLiU7Af07yjfY63ungGUHbGvrm0AU=";
    })
    (fetchpatch {
      name = "add-test-data.patch";
      url = "https://github.com/forlilab/Meeko/commit/57b52e3afffb82685cdd1ef1bf6820d55924b97a.patch";
      hash = "sha256-nLnyIjT68iaY3lAEbH9EJ5jZflhxABBwDqw8kaRKf3k=";
    })
  ];

  propagatedBuildInputs = [
    # setup.py only requires numpy but others are needed at runtime