Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, looseversion 5, mmtf-python 6, nose 7, numpy 8, pandas 9, pythonRelaxDepsHook 10}: 11 12buildPythonPackage rec { 13 pname = "biopandas"; 14 version = "0.4.1"; 15 format = "setuptools"; 16 17 src = fetchFromGitHub { 18 owner = "BioPandas"; 19 repo = "biopandas"; 20 rev = "refs/tags/v${version}"; 21 hash = "sha256-PRdemBo+bB2xJWmF2NylFTfNwEEo67i6XSaeDAFmQ/c="; 22 }; 23 24 nativeBuildInputs = [ 25 pythonRelaxDepsHook 26 ]; 27 28 pythonRelaxDeps = [ 29 "looseversion" 30 ]; 31 32 propagatedBuildInputs = [ 33 numpy 34 pandas 35 mmtf-python 36 looseversion 37 ]; 38 39 nativeCheckInputs = [ 40 nose 41 ]; 42 43 checkPhase = '' 44 runHook preCheck 45 46 nosetests 47 48 runHook postCheck 49 ''; 50 51 pythonImportsCheck = [ 52 "biopandas" 53 ]; 54 55 meta = { 56 description = "Working with molecular structures in pandas DataFrames"; 57 homepage = "https://github.com/BioPandas/biopandas"; 58 changelog = "https://github.com/BioPandas/biopandas/releases/tag/${src.rev}"; 59 license = lib.licenses.bsd3; 60 maintainers = with lib.maintainers; [ natsukium ]; 61 }; 62}