1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
|
{
lib,
buildPythonPackage,
fetchFromGitHub,
glibcLocales,
importlib-metadata,
packaging,
htslib,
fsspec,
pytestCheckHook,
biopython,
setuptools,
setuptools-scm,
}:
buildPythonPackage rec {
pname = "pyfaidx";
version = "0.8.1.4";
pyproject = true;
src = fetchFromGitHub {
owner = "mdshw5";
repo = "pyfaidx";
tag = "v${version}";
hash = "sha256-SDnmOJbuYYrg6vUQJTEuiqct9hhspN8B9Tpn8UojKFk=";
};
build-system = [
setuptools
setuptools-scm
];
dependencies = [
importlib-metadata
packaging
];
nativeCheckInputs = [
pytestCheckHook
biopython
htslib
fsspec
glibcLocales
];
pythonImportsCheck = [ "pyfaidx" ];
preCheck = ''
bgzip --keep tests/data/genes.fasta
'';
meta = {
description = "Python classes for indexing, retrieval, and in-place modification of FASTA files using a samtools compatible index";
homepage = "https://github.com/mdshw5/pyfaidx";
changelog = "https://github.com/mdshw5/pyfaidx/releases/tag/${src.tag}";
license = lib.licenses.bsd3;
maintainers = with lib.maintainers; [ jbedo ];
mainProgram = "faidx";
};
}
|