Skip to content

Commit

Permalink
truvari: 1.3.4 -> 2.0.2, fixing build
Browse files Browse the repository at this point in the history
seeing it has no tests, use pythonImportsCheck in an attempt to detect
total breakage, even though it's not intended to be used as an importable
module
  • Loading branch information
risicle committed Sep 20, 2020
1 parent e61102d commit ecd5886
Showing 1 changed file with 10 additions and 9 deletions.
19 changes: 10 additions & 9 deletions pkgs/applications/science/biology/truvari/default.nix
Expand Up @@ -5,13 +5,13 @@

python3Packages.buildPythonApplication rec {
pname = "truvari";
version = "1.3.4";
version = "2.0.2";

src = fetchFromGitHub {
owner = "spiralgenetics";
repo = "truvari";
rev = "v${version}";
sha256 = "1bph7v48s7pyfagz8a2fzl5fycjliqzn5lcbv3m2bp2ih1f1gd1v";
sha256 = "0lp1wnldjv92k4ncga1h0icb0dpjsrx427vggg40x04a7kp9lwx0";
};

propagatedBuildInputs = with python3Packages; [
Expand All @@ -21,15 +21,16 @@ python3Packages.buildPythonApplication rec {
pysam
pyfaidx
intervaltree
pytabix
acebinf
bwapy
joblib
pandas
];

prePatch = ''
substituteInPlace ./setup.py \
--replace '"progressbar2==3.41.0",' '"progressbar2",' \
--replace '"pysam==0.15.2",' '"pysam",' \
--replace '"pyfaidx==0.5.5.2",' '"pyfaidx",' \
--replace '"intervaltree==3.0.2",' '"intervaltree",'
'';
# no tests
doCheck = false;
pythonImportsCheck = [ "truvari" ];

meta = with lib; {
description = "Structural variant comparison tool for VCFs";
Expand Down

0 comments on commit ecd5886

Please sign in to comment.