1{ lib
2, buildPythonPackage
3, fetchPypi
4, nose
5, numpy
6, setuptools
7, setuptools-scm
8, six
9, glibcLocales
10, pytestCheckHook
11}:
12
13buildPythonPackage rec {
14 pname = "pyfaidx";
15 version = "0.7.2.2";
16 format = "pyproject";
17
18 src = fetchPypi {
19 inherit pname version;
20 hash = "sha256-O3aTwFLIJpEAD+SpJHXbgv/DtachoSsQ37yHEZxLTTA=";
21 };
22
23 nativeBuildInputs = [
24 setuptools
25 setuptools-scm
26 ];
27
28 propagatedBuildInputs = [
29 six
30 ];
31
32 nativeCheckInputs = [
33 glibcLocales
34 nose
35 numpy
36 pytestCheckHook
37 ];
38
39 disabledTestPaths = [
40 # FileNotFoundError: [Errno 2] No such file or directory: 'data/genes.fasta.gz'
41 "tests/test_Fasta_bgzip.py"
42 ];
43
44 pythonImportsCheck = [
45 "pyfaidx"
46 ];
47
48 meta = with lib; {
49 homepage = "https://github.com/mdshw5/pyfaidx";
50 description = "Python classes for indexing, retrieval, and in-place modification of FASTA files using a samtools compatible index";
51 license = licenses.bsd3;
52 maintainers = with maintainers; [ jbedo ];
53 };
54}