python311Packages.pdbfixer: init at 1.9

This commit is contained in:
natsukium 2023-10-12 00:02:06 +09:00
parent 6bc5e42204
commit de8aa0640b
No known key found for this signature in database
GPG Key ID: 9EA45A31DB994C53
2 changed files with 66 additions and 0 deletions

View File

@ -0,0 +1,64 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, setuptools
, wheel
, numpy
, openmm
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "pdbfixer";
version = "1.9";
pyproject = true;
src = fetchFromGitHub {
owner = "openmm";
repo = "pdbfixer";
rev = version;
hash = "sha256-ZXQWdNQyoVgjpZj/Wimcfwcbxk3CIvg3n5S1glNYUP4=";
};
nativeBuildInputs = [
setuptools
wheel
];
propagatedBuildInputs = [
numpy
openmm
];
nativeCheckInputs = [
pytestCheckHook
];
preCheck = ''
export PATH=$out/bin:$PATH
'';
disabledTests = [
# require network access
"test_build_and_simulate"
"test_mutate_1"
"test_mutate_2"
"test_mutate_3_fails"
"test_mutate_4_fails"
"test_mutate_5_fails"
"test_mutate_multiple_copies_of_chain_A"
"test_pdbid"
"test_url"
];
pythonImportsCheck = [ "pdbfixer" ];
meta = with lib; {
description = "PDBFixer fixes problems in PDB files";
homepage = "https://github.com/openmm/pdbfixer";
changelog = "https://github.com/openmm/pdbfixer/releases/tag/${src.rev}";
license = licenses.mit;
maintainers = with maintainers; [ natsukium ];
mainProgram = "pdbfixer";
};
}

View File

@ -8753,6 +8753,8 @@ self: super: with self; {
pdb2pqr = callPackage ../development/python-modules/pdb2pqr { };
pdbfixer = callPackage ../development/python-modules/pdbfixer { };
pdf2docx = callPackage ../development/python-modules/pdf2docx { };
pdf2image = callPackage ../development/python-modules/pdf2image { };