blob: 395978396a5999c0dd3f80ea5fae0ce1bc9cee5a (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
{ lib, fetchFromGitHub, buildPythonPackage, isPy27, numpy, cython, zlib, six
, python-lzo, nose }:
buildPythonPackage rec {
pname = "bx-python";
version = "0.8.10";
disabled = isPy27;
src = fetchFromGitHub {
owner = "bxlab";
repo = "bx-python";
rev = "v${version}";
sha256 = "09q5nrv0w9b1bclc7g80bih87ikffhvia22d6cpdc747wjrzz8il";
};
nativeBuildInputs = [ cython ];
buildInputs = [ zlib ];
propagatedBuildInputs = [ numpy six python-lzo ];
checkInputs = [ nose ];
postInstall = ''
cp -r scripts/* $out/bin
# This is a small hack; the test suit uses the scripts which need to
# be patched. Linking the patched scripts in $out back to the
# working directory allows the tests to run
rm -rf scripts
ln -s $out/bin scripts
'';
meta = with lib; {
homepage = "https://github.com/bxlab/bx-python";
description =
"Tools for manipulating biological data, particularly multiple sequence alignments";
license = licenses.mit;
maintainers = [ maintainers.jbedo ];
platforms = [ "x86_64-linux" ];
};
}
|