depot/third_party/nixpkgs/pkgs/development/python-modules/biopandas/default.nix
Default email 9c6ee729d6 Project import generated by Copybara.
GitOrigin-RevId: 6cee3b5893090b0f5f0a06b4cf42ca4e60e5d222
2023-07-15 19:15:38 +02:00

62 lines
1.1 KiB
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, looseversion
, mmtf-python
, nose
, numpy
, pandas
, pythonRelaxDepsHook
}:
buildPythonPackage rec {
pname = "biopandas";
version = "0.4.1";
format = "setuptools";
src = fetchFromGitHub {
owner = "BioPandas";
repo = "biopandas";
rev = "refs/tags/v${version}";
hash = "sha256-PRdemBo+bB2xJWmF2NylFTfNwEEo67i6XSaeDAFmQ/c=";
};
nativeBuildInputs = [
pythonRelaxDepsHook
];
pythonRelaxDeps = [
"looseversion"
];
propagatedBuildInputs = [
numpy
pandas
mmtf-python
looseversion
];
nativeCheckInputs = [
nose
];
checkPhase = ''
runHook preCheck
nosetests
runHook postCheck
'';
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 ];
};
}