about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/python-modules/cnvkit/default.nix
blob: 054e302dfe76fd17e12a2caec63adc4282107dea (plain) (blame)
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
{ lib
, fetchPypi
, rPackages
, rWrapper
, buildPythonPackage
, biopython
, numpy
, scipy
, pandas
, matplotlib
, reportlab
, pysam
, future
, pillow
, pomegranate
, pyfaidx
}:

buildPythonPackage rec {
  pname = "CNVkit";
  version = "0.9.6";

  src = fetchPypi {
    inherit pname version;
    sha256 = "1hj8c98s538i0hg5mrz4bw4v07qmcl51rhxq611rj2nglnc9r25y";
  };

  propagatedBuildInputs = [
    biopython
    numpy
    scipy
    pandas
    matplotlib
    reportlab
    pyfaidx
    pysam
    future
    pillow
    pomegranate
  ];

  postPatch = ''
    substituteInPlace setup.py \
      --replace "pandas >= 0.20.1, < 0.25.0" "pandas"
  '';

  meta = with lib; {
    homepage = "https://cnvkit.readthedocs.io";
    description = "A Python library and command-line software toolkit to infer and visualize copy number from high-throughput DNA sequencing data";
    license = licenses.asl20;
    maintainers = [ maintainers.jbedo ];
  };
}