Unverified Commit d4879149 authored by natsukium's avatar natsukium
Browse files
parent 6c8bca05
Loading
Loading
Loading
Loading
+21 −13
Original line number Diff line number Diff line
@@ -2,46 +2,54 @@
  lib,
  buildPythonPackage,
  fetchFromGitHub,
  setuptools,
  looseversion,
  mmtf-python,
  nose,
  numpy,
  pandas,
  pynose,
  pytestCheckHook,
  pythonRelaxDepsHook,
}:

buildPythonPackage rec {
  pname = "biopandas";
  version = "0.4.1";
  format = "setuptools";
  version = "0.5.0";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "BioPandas";
    repo = "biopandas";
    rev = "refs/tags/v${version}";
    hash = "sha256-PRdemBo+bB2xJWmF2NylFTfNwEEo67i6XSaeDAFmQ/c=";
    hash = "sha256-1c78baBBsDyvAWrNx5mZI/Q75wyXv0DAwAdWm3EwX/I=";
  };

  nativeBuildInputs = [ pythonRelaxDepsHook ];

  pythonRelaxDeps = [ "looseversion" ];

  propagatedBuildInputs = [
  build-system = [ setuptools ];

  dependencies = [
    numpy
    pandas
    mmtf-python
    looseversion
  ];

  nativeCheckInputs = [ nose ];

  checkPhase = ''
    runHook preCheck

    nosetests
  nativeCheckInputs = [
    pynose
    pytestCheckHook
  ];

    runHook postCheck
  '';
  disabledTests = [
    # require network access
    "test_mmcif_pdb_conversion"
    "test_fetch_pdb"
    "test_write_mmtf_bp"
    "test_write_mmtf"
    "test_b_factor_shift"
  ];

  pythonImportsCheck = [ "biopandas" ];