python312Packages.osmnx: 1.9.3 → 2.0.0 (#360529)
[NixPkgs.git] / pkgs / development / python-modules / pdbfixer / default.nix
blob0042364a3218feb519a67238b60951af5062446c
2   lib,
3   buildPythonPackage,
4   fetchFromGitHub,
5   setuptools,
6   wheel,
7   numpy,
8   openmm,
9   pytestCheckHook,
12 buildPythonPackage rec {
13   pname = "pdbfixer";
14   version = "1.9";
15   pyproject = true;
17   src = fetchFromGitHub {
18     owner = "openmm";
19     repo = "pdbfixer";
20     rev = version;
21     hash = "sha256-ZXQWdNQyoVgjpZj/Wimcfwcbxk3CIvg3n5S1glNYUP4=";
22   };
24   nativeBuildInputs = [
25     setuptools
26     wheel
27   ];
29   propagatedBuildInputs = [
30     numpy
31     openmm
32   ];
34   nativeCheckInputs = [ pytestCheckHook ];
36   preCheck = ''
37     export PATH=$out/bin:$PATH
38   '';
40   disabledTests = [
41     # require network access
42     "test_build_and_simulate"
43     "test_mutate_1"
44     "test_mutate_2"
45     "test_mutate_3_fails"
46     "test_mutate_4_fails"
47     "test_mutate_5_fails"
48     "test_mutate_multiple_copies_of_chain_A"
49     "test_pdbid"
50     "test_url"
51   ];
53   pythonImportsCheck = [ "pdbfixer" ];
55   meta = with lib; {
56     description = "PDBFixer fixes problems in PDB files";
57     homepage = "https://github.com/openmm/pdbfixer";
58     changelog = "https://github.com/openmm/pdbfixer/releases/tag/${src.rev}";
59     license = licenses.mit;
60     maintainers = with maintainers; [ natsukium ];
61     mainProgram = "pdbfixer";
62   };