{ lib , fetchurl , rPackages , rWrapper , buildPythonPackage , fetchPypi , biopython , six , numpy , pillow , pysam , future , scipy , pandas , matplotlib , reportlab , zlib , bzip2 , htslib , libjpeg , pkgconfig , futures }: let pyfaidx = buildPythonPackage rec { pname = "pyfaidx"; version = "0.5.3.1"; src = fetchPypi { inherit pname version; sha256 = "0mjbksbj9hh2cf0yjr951cjahhn0lg7p71kd3kvbnscqyxa44kfr"; }; propagatedBuildInputs = [ six ]; }; cghFLasso = rPackages.buildRPackage rec { name = "cghFLasso-${version}"; version = "0.2-1"; src = fetchurl { url = "https://cran.r-project.org/src/contrib/Archive/cghFLasso/cghFLasso_${version}.tar.gz"; sha256 = "0b1hnjf9g0v47hbz0dy9m6jhcl1ky20yyhhmm8myng2sndcpjsbf"; }; }; cnvR = rWrapper.override { packages = with rPackages; [ DNAcopy cghFLasso ]; }; in buildPythonPackage rec { pname = "CNVkit"; version = "0.9.5"; src = fetchPypi { inherit pname version; sha256 = "1sa70bmnxj1lzp33pbj3axk6n77czswwj9cirimxh2qrn84i7vs3"; }; propagatedBuildInputs = [ biopython numpy scipy pandas matplotlib reportlab pyfaidx pysam futures future pillow cnvR ]; }