push sheeet
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s

This commit is contained in:
Dark Steveneq
2025-10-09 14:15:47 +02:00
commit 646b892680
49168 changed files with 5897842 additions and 0 deletions

View File

@@ -0,0 +1,65 @@
{
lib,
buildPythonPackage,
autodock-vina,
swig,
setuptools,
numpy,
}:
let
inherit (autodock-vina) boost;
in
buildPythonPackage {
inherit (autodock-vina)
pname
version
src
meta
;
format = "pyproject";
sourceRoot = "${autodock-vina.src.name}/build/python";
postPatch = ''
# wildcards are not allowed
# https://github.com/ccsb-scripps/AutoDock-Vina/issues/176
substituteInPlace setup.py \
--replace "python_requires='>=3.5.*'" "python_requires='>=3.5'"
# setupPyBuildFlags are not applied with `format = "pyproject"`
substituteInPlace setup.py \
--replace "= locate_boost()" "= '${lib.getDev boost}/include', '${boost}/lib'"
# this line attempts to delete the source code
substituteInPlace setup.py \
--replace "shutil.rmtree('src')" "..."
# np.int is deprecated
# https://github.com/ccsb-scripps/AutoDock-Vina/pull/167 and so on
substituteInPlace vina/vina.py \
--replace "np.int" "int"
'';
nativeBuildInputs = [
setuptools
swig
];
buildInputs = [
boost
];
propagatedBuildInputs = [
numpy
];
# upstream has no tests
doCheck = false;
pythonImportsCheck = [
"vina"
];
}