2020-11-30 08:33:03 +00:00
|
|
|
{ stdenv, buildPythonPackage, fetchFromGitHub, cython, numpy, pysam, matplotlib, python, isPy27, isPy3k }:
|
2020-04-24 23:36:52 +00:00
|
|
|
buildPythonPackage rec {
|
2020-06-15 15:56:04 +00:00
|
|
|
version = "0.12.4";
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "HTSeq";
|
|
|
|
|
2020-11-30 08:33:03 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "htseq";
|
|
|
|
repo = "htseq";
|
|
|
|
rev = "release_${version}";
|
|
|
|
sha256 = "0y7vh249sljqjnv81060w4xkdx6f1y5zdqkh38yk926x6v9riijm";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2020-11-30 08:33:03 +00:00
|
|
|
nativeBuildInputs = [ cython ];
|
2020-04-24 23:36:52 +00:00
|
|
|
propagatedBuildInputs = [ numpy pysam matplotlib ];
|
|
|
|
|
2020-11-30 08:33:03 +00:00
|
|
|
checkPhase = stdenv.lib.optionalString isPy27 ''
|
|
|
|
${python.interpreter} python2/test/test_general.py
|
|
|
|
'' + stdenv.lib.optionalString isPy3k ''
|
|
|
|
${python.interpreter} python3/test/test_general.py
|
|
|
|
'';
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
meta = with stdenv.lib; {
|
2020-11-30 08:33:03 +00:00
|
|
|
homepage = "https://htseq.readthedocs.io/";
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "A framework to work with high-throughput sequencing data";
|
|
|
|
maintainers = with maintainers; [ unode ];
|
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
|
|
|
}
|