pybedtools: Initial packaging

This commit is contained in:
Tyson Whitehead
2019-04-30 15:19:02 -04:00
parent 1965334f5a
commit 05b4a13c47
2 changed files with 34 additions and 0 deletions

32
pkgs/pybedtools.nix Normal file
View File

@@ -0,0 +1,32 @@
{ lib, fetchFromGitHub, buildPythonPackage
, cython, bedtools
, zlib, six, pysam, pytest, psutil, pyaml }:
buildPythonPackage rec {
version = "0.8.0";
name = "pybedtools-${version}";
src = fetchFromGitHub {
owner = "daler";
repo = "pybedtools";
rev = "v${version}";
sha256 = "10c7rj07jz8v7r5yxfpwdx7dqfnrcncp16ry1y2cfk68awdnk122";
};
buildInputs = [ cython zlib ];
propagatedBuildInputs = [ six pysam ];
checkInputs = [ pytest psutil pyaml ];
postPatch = ''
sed -i -e '$ahelpers.set_bedtools_path('\'''${bedtools}/bin'\''')' pybedtools/__init__.py
'';
preBuild = ''
python setup.py cythonize
'';
meta = with lib; {
homepage = "http://daler.github.io/pybedtools";
description = "pybedtools wraps and extends BEDTools and offers feature-level manipulations from within Python.";
license = licenses.lgpl2Plus;
};
}

View File

@@ -1,4 +1,6 @@
pkgs: self: super: with self; {
openslide = callPackage ./openslide/python.nix { openslide = pkgs.openslide; };
pybedtools = callPackage ./pybedtools.nix { };
}