Numpy Override for Lumpy

This commit is contained in:
2023-05-25 12:37:48 -04:00
parent 1e1d2a3800
commit 5e775250ed
2 changed files with 21 additions and 5 deletions

View File

@@ -11,7 +11,7 @@ final: prev: with prev; {
gsort = callPackage ./gsort { };
lumpy = callPackage ./lumpy.nix { python=prev.python2; };
lumpy = callPackage ./lumpy.nix { };
#meraculous = callPackage ./meraculous.nix { let stdenv49 = overrideCC stdenv gcc49; in stdenv = stdenv49; boost = boost159.override { stdenv = stdenv49 }; };

View File

@@ -1,8 +1,19 @@
{ stdenv, lib, fetchFromGitHub, which, autoconf, automake
, zlib, curl
, python, python2Packages, hexdump, sambamba, samblaster, samtools }:
stdenv.mkDerivation rec {
, python2, hexdump, sambamba, samblaster, samtools }: let
python = python2.override {
packageOverrides = final: prev: {
numpy = prev.numpy.overridePythonAttrs(old: rec {
version = "1.16.6";
src = fetchPypi {
inherit pname version;
extension = "zip";
sha256 = "e5cf3fdf13401885e8eea8170624ec96225e2174eb0c611c6f26dd33b489e3ff";
};
});
};
};
in stdenv.mkDerivation rec {
version = "0.3.0";
name = "lumpy-${version}";
@@ -39,7 +50,12 @@ stdenv.mkDerivation rec {
automake
zlib
curl
(python.withPackages (packages: with packages; [ numpy pysam ]))
(python.withPackages (packages: with packages;
[
numpy
pysam
]
))
hexdump
sambamba
samblaster