2019-07-05 06:04:17 +01:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
2021-11-29 13:07:58 +00:00
|
|
|
, nose
|
|
|
|
, numpy
|
|
|
|
, setuptools-scm
|
2019-07-05 06:04:17 +01:00
|
|
|
, six
|
2021-11-29 13:07:58 +00:00
|
|
|
, pytestCheckHook
|
2019-07-05 06:04:17 +01:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pyfaidx";
|
2021-11-25 22:47:07 +00:00
|
|
|
version = "0.6.3.1";
|
2021-11-29 13:07:58 +00:00
|
|
|
format = "setuptools";
|
2019-07-05 06:04:17 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-11-25 22:47:07 +00:00
|
|
|
sha256 = "93adf036a75e08dc9b1dcd59de6a4db2f65a48c603edabe2e499764b6535ed50";
|
2019-07-05 06:04:17 +01:00
|
|
|
};
|
|
|
|
|
2021-11-29 13:07:58 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
setuptools-scm
|
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
six
|
|
|
|
];
|
|
|
|
|
|
|
|
checkInputs = [
|
|
|
|
nose
|
|
|
|
numpy
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
|
|
|
disabledTests = [
|
|
|
|
# PyPI releases don't ship all the needed files for the tests
|
|
|
|
"test_index_zero_length"
|
|
|
|
"test_fetch_zero_length"
|
|
|
|
"test_read_back_index"
|
|
|
|
];
|
|
|
|
|
|
|
|
pythonImportsCheck = [
|
|
|
|
"pyfaidx"
|
|
|
|
];
|
2019-07-05 06:04:17 +01:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
homepage = "https://github.com/mdshw5/pyfaidx";
|
|
|
|
description = "Python classes for indexing, retrieval, and in-place modification of FASTA files using a samtools compatible index";
|
|
|
|
license = licenses.bsd3;
|
2021-11-29 13:07:58 +00:00
|
|
|
maintainers = with maintainers; [ jbedo ];
|
2019-07-05 06:04:17 +01:00
|
|
|
};
|
|
|
|
}
|