2024-05-15 15:35:15 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchPypi,
|
|
|
|
glibcLocales,
|
|
|
|
importlib-metadata,
|
|
|
|
numpy,
|
|
|
|
pytestCheckHook,
|
|
|
|
pythonOlder,
|
|
|
|
setuptools,
|
|
|
|
setuptools-scm,
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pyfaidx";
|
2024-01-25 14:12:00 +00:00
|
|
|
version = "0.8.1.1";
|
2024-05-15 15:35:15 +00:00
|
|
|
pyproject = true;
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2024-01-25 14:12:00 +00:00
|
|
|
hash = "sha256-bwSCNSYZ8sxWADyiIyG9sNB2S2VnlbweQGKx+psIaGs=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2024-05-15 15:35:15 +00:00
|
|
|
build-system = [
|
2023-03-15 16:39:30 +00:00
|
|
|
setuptools
|
2021-12-26 17:43:05 +00:00
|
|
|
setuptools-scm
|
|
|
|
];
|
|
|
|
|
2024-05-15 15:35:15 +00:00
|
|
|
dependencies = [ importlib-metadata ];
|
2021-12-26 17:43:05 +00:00
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2022-04-27 09:35:20 +00:00
|
|
|
glibcLocales
|
2021-12-26 17:43:05 +00:00
|
|
|
numpy
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
2022-04-27 09:35:20 +00:00
|
|
|
disabledTestPaths = [
|
|
|
|
# FileNotFoundError: [Errno 2] No such file or directory: 'data/genes.fasta.gz'
|
|
|
|
"tests/test_Fasta_bgzip.py"
|
2021-12-26 17:43:05 +00:00
|
|
|
];
|
|
|
|
|
2024-05-15 15:35:15 +00:00
|
|
|
pythonImportsCheck = [ "pyfaidx" ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Python classes for indexing, retrieval, and in-place modification of FASTA files using a samtools compatible index";
|
2024-05-15 15:35:15 +00:00
|
|
|
homepage = "https://github.com/mdshw5/pyfaidx";
|
|
|
|
changelog = "https://github.com/mdshw5/pyfaidx/releases/tag/v${version}";
|
2020-04-24 23:36:52 +00:00
|
|
|
license = licenses.bsd3;
|
2021-12-26 17:43:05 +00:00
|
|
|
maintainers = with maintainers; [ jbedo ];
|
2024-05-15 15:35:15 +00:00
|
|
|
mainProgram = "faidx";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|