depot/third_party/nixpkgs/pkgs/development/python-modules/biopandas/default.nix
Default email fa5436e0a7 Project import generated by Copybara.
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
2024-06-05 17:53:02 +02:00

63 lines
1.2 KiB
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
setuptools,
looseversion,
mmtf-python,
numpy,
pandas,
pynose,
pytestCheckHook,
pythonRelaxDepsHook,
}:
buildPythonPackage rec {
pname = "biopandas";
version = "0.5.0";
pyproject = true;
src = fetchFromGitHub {
owner = "BioPandas";
repo = "biopandas";
rev = "refs/tags/v${version}";
hash = "sha256-1c78baBBsDyvAWrNx5mZI/Q75wyXv0DAwAdWm3EwX/I=";
};
nativeBuildInputs = [ pythonRelaxDepsHook ];
pythonRelaxDeps = [ "looseversion" ];
build-system = [ setuptools ];
dependencies = [
numpy
pandas
mmtf-python
looseversion
];
nativeCheckInputs = [
pynose
pytestCheckHook
];
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";
changelog = "https://github.com/BioPandas/biopandas/releases/tag/${src.rev}";
license = lib.licenses.bsd3;
maintainers = with lib.maintainers; [ natsukium ];
};
}