blob: da4fdbb92200730b224ab3be690988f0f9574920 (
plain)
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
61
62
63
64
65
66
67
68
69
70
|
{
lib,
buildPythonPackage,
fetchFromGitHub,
swig,
cython,
matplotlib,
numpy,
pandas,
pysam,
setuptools,
pytestCheckHook,
nix-update-script,
}:
buildPythonPackage rec {
pname = "htseq";
version = "2.0.9";
pyproject = true;
src = fetchFromGitHub {
owner = "htseq";
repo = "htseq";
rev = "release_${version}";
hash = "sha256-i83BY7/p98/pfYzebolNW/6yNwtb2R5ARCSG3rAq2/M=";
};
nativeBuildInputs = [ swig ];
build-system = [
cython
numpy
pysam
setuptools
];
dependencies = [
numpy
pysam
];
optional-dependencies = {
htseq-qa = [ matplotlib ];
};
pythonImportsCheck = [ "HTSeq" ];
nativeCheckInputs = [
pandas
pytestCheckHook
]
++ optional-dependencies.htseq-qa;
preCheck = ''
rm -r src HTSeq
export PATH=$out/bin:$PATH
'';
passthru.updateScript = nix-update-script {
extraArgs = [
"--version-regex"
"release_(.+)"
];
};
meta = {
homepage = "https://htseq.readthedocs.io/";
description = "Framework to work with high-throughput sequencing data";
maintainers = with lib.maintainers; [ unode ];
};
}
|