nixpkgs/pkgs/development/python-modules/cnvkit/default.nix

58 lines
1021 B
Nix
Raw Normal View History

2019-06-19 03:26:26 +00:00
{ lib
, fetchPypi
, rPackages
, rWrapper
, buildPythonPackage
, biopython
, numpy
, scipy
2020-07-07 16:34:48 +00:00
, scikitlearn
2019-06-19 03:26:26 +00:00
, pandas
, matplotlib
, reportlab
, pysam
, future
, pillow
, pomegranate
, pyfaidx
}:
buildPythonPackage rec {
pname = "CNVkit";
2020-06-05 17:44:33 +00:00
version = "0.9.7";
2019-06-19 03:26:26 +00:00
src = fetchPypi {
inherit pname version;
2020-06-05 17:44:33 +00:00
sha256 = "d68adc0121e17c61a3aa28c0a9ba6526510a5a0df0f0a6eb1818bab71b7e927a";
2019-06-19 03:26:26 +00:00
};
propagatedBuildInputs = [
biopython
numpy
scipy
2020-07-07 16:34:48 +00:00
scikitlearn
2019-06-19 03:26:26 +00:00
pandas
matplotlib
reportlab
pyfaidx
pysam
future
pillow
pomegranate
];
2019-09-29 04:27:04 +00:00
postPatch = ''
substituteInPlace setup.py \
--replace "pandas >= 0.20.1, < 0.25.0" "pandas"
'';
2020-07-07 16:34:48 +00:00
pythonImportsCheck = [ "cnvlib" ];
2019-06-19 03:26:26 +00:00
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 ];
};
}