aboutsummaryrefslogtreecommitdiff
path: root/infra/libkookie/nixpkgs/pkgs/development/python-modules/HTSeq/default.nix
blob: 83263f734bd454423e6c5b1334d43086fc1bd5a3 (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
{ stdenv, buildPythonPackage, fetchFromGitHub, cython, numpy, pysam, matplotlib, python, isPy27, isPy3k }:
buildPythonPackage rec {
  version = "0.12.4";
  pname = "HTSeq";

  src = fetchFromGitHub {
    owner = "htseq";
    repo = "htseq";
    rev = "release_${version}";
    sha256 = "0y7vh249sljqjnv81060w4xkdx6f1y5zdqkh38yk926x6v9riijm";
  };

  nativeBuildInputs = [ cython ];
  propagatedBuildInputs = [ numpy pysam matplotlib ];

  checkPhase = stdenv.lib.optionalString isPy27 ''
    ${python.interpreter} python2/test/test_general.py
  '' + stdenv.lib.optionalString isPy3k ''
    ${python.interpreter} python3/test/test_general.py
  '';

  meta = with stdenv.lib; {
    homepage = "https://htseq.readthedocs.io/";
    description = "A framework to work with high-throughput sequencing data";
    maintainers = with maintainers; [ unode ];
    platforms = platforms.unix;
  };
}