Skip to content

Commit

Permalink
Merge pull request #313266 from natsukium/biopandas/update
Browse files Browse the repository at this point in the history
python311Packages.biopandas: 0.4.1 -> 0.5.0
  • Loading branch information
fabaff authored May 21, 2024
2 parents 8c11d6e + d487914 commit 0a644a5
Showing 1 changed file with 31 additions and 30 deletions.
61 changes: 31 additions & 30 deletions pkgs/development/python-modules/biopandas/default.nix
Original file line number Diff line number Diff line change
@@ -1,57 +1,58 @@
{ 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
looseversion
];

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";
Expand Down

0 comments on commit 0a644a5

Please sign in to comment.