Unverified Commit 0a644a5d authored by Fabian Affolter's avatar Fabian Affolter Committed by GitHub
Browse files

Merge pull request #313266 from natsukium/biopandas/update

python311Packages.biopandas: 0.4.1 -> 0.5.0
parents 8c11d6ea d4879149
Loading
Loading
Loading
Loading
+31 −30
Original line number Diff line number Diff line
{ lib
, buildPythonPackage
, fetchFromGitHub
, looseversion
, mmtf-python
, nose
, numpy
, pandas
, pythonRelaxDepsHook
{
  lib,
  buildPythonPackage,
  fetchFromGitHub,
  setuptools,
  looseversion,
  mmtf-python,
  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
  ];
  nativeBuildInputs = [ pythonRelaxDepsHook ];

  pythonRelaxDeps = [
    "looseversion"
  ];
  pythonRelaxDeps = [ "looseversion" ];

  propagatedBuildInputs = [
  build-system = [ setuptools ];

  dependencies = [
    numpy
    pandas
    mmtf-python
@@ -37,21 +38,21 @@ buildPythonPackage rec {
  ];

  nativeCheckInputs = [
    nose
    pynose
    pytestCheckHook
  ];

  checkPhase = ''
    runHook preCheck

    nosetests

    runHook postCheck
  '';

  pythonImportsCheck = [
    "biopandas"
  disabledTests = [
    # require network access
    "test_mmcif_pdb_conversion"
    "test_fetch_pdb"
    "test_write_mmtf_bp"
    "test_write_mmtf"
    "test_b_factor_shift"
  ];

  pythonImportsCheck = [ "biopandas" ];

  meta = {
    description = "Working with molecular structures in pandas DataFrames";
    homepage = "https://github.com/BioPandas/biopandas";