2021-01-25 08:26:54 +00:00
|
|
|
{ lib, buildPythonPackage, fetchFromGitHub, cython, numpy, pysam, matplotlib, python, isPy27, isPy3k }:
|
2019-10-02 10:24:30 +01:00
|
|
|
buildPythonPackage rec {
|
2020-06-06 07:46:55 +01:00
|
|
|
version = "0.12.4";
|
2019-10-02 10:24:30 +01:00
|
|
|
pname = "HTSeq";
|
|
|
|
|
2020-10-30 09:35:14 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "htseq";
|
|
|
|
repo = "htseq";
|
|
|
|
rev = "release_${version}";
|
|
|
|
sha256 = "0y7vh249sljqjnv81060w4xkdx6f1y5zdqkh38yk926x6v9riijm";
|
2019-10-02 10:24:30 +01:00
|
|
|
};
|
|
|
|
|
2020-10-30 09:35:14 +00:00
|
|
|
nativeBuildInputs = [ cython ];
|
2019-10-02 10:24:30 +01:00
|
|
|
propagatedBuildInputs = [ numpy pysam matplotlib ];
|
|
|
|
|
2021-01-24 00:29:22 +00:00
|
|
|
checkPhase = lib.optionalString isPy27 ''
|
2020-10-30 09:35:14 +00:00
|
|
|
${python.interpreter} python2/test/test_general.py
|
2021-01-24 00:29:22 +00:00
|
|
|
'' + lib.optionalString isPy3k ''
|
2020-10-30 09:35:14 +00:00
|
|
|
${python.interpreter} python3/test/test_general.py
|
|
|
|
'';
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2020-10-30 09:35:14 +00:00
|
|
|
homepage = "https://htseq.readthedocs.io/";
|
2019-10-02 10:24:30 +01:00
|
|
|
description = "A framework to work with high-throughput sequencing data";
|
|
|
|
maintainers = with maintainers; [ unode ];
|
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
|
|
|
}
|