python3Packages.meeko: init at 0.4.0

This commit is contained in:
natsukium 2023-06-16 13:01:35 +09:00
parent e57b65abbb
commit cb040e5209
No known key found for this signature in database
GPG Key ID: 9EA45A31DB994C53
2 changed files with 54 additions and 0 deletions

View File

@ -0,0 +1,52 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, numpy
, pytestCheckHook
, pythonOlder
, rdkit
, scipy
}:
buildPythonPackage rec {
pname = "meeko";
version = "0.4.0";
format = "setuptools";
disabled = pythonOlder "3.5";
src = fetchFromGitHub {
owner = "forlilab";
repo = "Meeko";
rev = "refs/tags/v${version}";
hash = "sha256-BCkKRwz3jK5rNAMtKcGxuvfdIFxRRJpABcedyd1zSKE=";
};
postPatch = ''
substituteInPlace setup.py \
--replace "python_requires='>=3.5.*'" "python_requires='>=3.5'"
'';
propagatedBuildInputs = [
# setup.py only requires numpy but others are needed at runtime
numpy
rdkit
scipy
];
nativeCheckInputs = [
pytestCheckHook
];
pythonImportsCheck = [
"meeko"
];
meta = {
description = "Python package for preparing small molecule for docking";
homepage = "https://github.com/forlilab/Meeko";
changelog = "https://github.com/forlilab/Meeko/releases/tag/${src.rev}";
license = lib.licenses.lgpl21Only;
maintainers = with lib.maintainers; [ natsukium ];
};
}

View File

@ -6162,6 +6162,8 @@ self: super: with self; {
mediapy = callPackage ../development/python-modules/mediapy { };
meeko = callPackage ../development/python-modules/meeko { };
meep = callPackage ../development/python-modules/meep { };
meilisearch = callPackage ../development/python-modules/meilisearch { };