svtyper: Initial packaging

This commit is contained in:
Tyson Whitehead
2019-11-07 17:26:51 -05:00
parent ded9f94444
commit 3902499aaf
2 changed files with 33 additions and 0 deletions

View File

@@ -56,6 +56,8 @@ self: super: pkgs: with pkgs; {
samblaster = callPackage ./samblaster.nix { };
svtyper = pythonPackages.callPackage ./svtyper.nix { };
idba = callPackage ./idba.nix { };
nixStable = ( super.nixStable.override { confDir= "/nix/etc"; } ).overrideAttrs

31
pkgs/svtyper.nix Normal file
View File

@@ -0,0 +1,31 @@
{ lib, fetchPypi, buildPythonApplication
, scipy, cytoolz, pysam
, pytest, pytestrunner }:
buildPythonApplication rec {
version = "0.7.1";
pname = "svtyper";
src = fetchPypi {
inherit pname version;
sha256 = "1fryl5h947sf8rxj7pzrzjfy6is8xhq6yz25sd8hq88563mkianh";
};
postPatch = ''
substituteInPlace setup.py \
--replace o"pytest==4.6.4" "pytest"
'';
nativeBuildInputs = [ pytestrunner ];
propagatedBuildInputs = [ scipy cytoolz pysam ];
checkInputs = [ pytest ];
# test infrastructure, but no tests in the package
doCheck = false;
meta = with lib; {
homepage = https://github.com/hall-lab/svtyper;
description = "Bayesian genotyper for structural variants.";
license = licenses.mit;
};
}