2020-04-24 23:36:52 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
2021-12-26 17:43:05 +00:00
|
|
|
, nose
|
|
|
|
, numpy
|
2023-03-15 16:39:30 +00:00
|
|
|
, setuptools
|
2021-12-26 17:43:05 +00:00
|
|
|
, setuptools-scm
|
2020-04-24 23:36:52 +00:00
|
|
|
, six
|
2022-04-27 09:35:20 +00:00
|
|
|
, glibcLocales
|
2021-12-26 17:43:05 +00:00
|
|
|
, pytestCheckHook
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pyfaidx";
|
2023-03-15 16:39:30 +00:00
|
|
|
version = "0.7.2.1";
|
|
|
|
format = "pyproject";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2023-03-15 16:39:30 +00:00
|
|
|
hash = "sha256-MPDSCp49UzU/sg62m34i5vAaU+1PIbPhfdQI8L5QUaA=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-12-26 17:43:05 +00:00
|
|
|
nativeBuildInputs = [
|
2023-03-15 16:39:30 +00:00
|
|
|
setuptools
|
2021-12-26 17:43:05 +00:00
|
|
|
setuptools-scm
|
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
six
|
|
|
|
];
|
|
|
|
|
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
|
|
|
nose
|
|
|
|
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
|
|
|
];
|
|
|
|
|
|
|
|
pythonImportsCheck = [
|
|
|
|
"pyfaidx"
|
|
|
|
];
|
2020-04-24 23:36:52 +00: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-12-26 17:43:05 +00:00
|
|
|
maintainers = with maintainers; [ jbedo ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|