mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-07-18 14:41:18 +00:00
Merge pull request #75900 from jbedo/tebreak
Tebreak, minia, last, bx-python, python-lzo
This commit is contained in:
39
pkgs/development/python-modules/bx-python/default.nix
Normal file
39
pkgs/development/python-modules/bx-python/default.nix
Normal file
@@ -0,0 +1,39 @@
|
||||
{ lib, fetchFromGitHub, buildPythonPackage, isPy27, numpy, cython, zlib, six
|
||||
, python-lzo, nose }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "bx-python";
|
||||
version = "0.8.6";
|
||||
disabled = isPy27;
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "bxlab";
|
||||
repo = "bx-python";
|
||||
rev = "v${version}";
|
||||
sha256 = "1i40vmn8n83vqcpqj843riv9vp16s753jc4wc90p0cmrnhmzcv13";
|
||||
};
|
||||
|
||||
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" ];
|
||||
};
|
||||
}
|
||||
22
pkgs/development/python-modules/python-lzo/default.nix
Normal file
22
pkgs/development/python-modules/python-lzo/default.nix
Normal file
@@ -0,0 +1,22 @@
|
||||
{ lib, fetchPypi, buildPythonPackage, lzo, nose }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "python-lzo";
|
||||
version = "1.12";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "0iakqgd51n1cd7r3lpdylm2rgbmd16y74cra9kcapwg84mlf9a4p";
|
||||
};
|
||||
|
||||
buildInputs = [ lzo ];
|
||||
propagatedBuildInputs = [ ];
|
||||
checkInputs = [ nose ];
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "https://github.com/jd-boyd/python-lzo";
|
||||
description = "Python bindings for the LZO data compression library";
|
||||
license = licenses.gpl2;
|
||||
maintainers = [ maintainers.jbedo ];
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user