uboot: (firmwareOdroidC2/C4) don't invoke patch tool, use patches = [] instead
https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
This commit is contained in:
commit
56de2bcd43
30691 changed files with 3076956 additions and 0 deletions
42
pkgs/development/python-modules/bwapy/default.nix
Normal file
42
pkgs/development/python-modules/bwapy/default.nix
Normal file
|
|
@ -0,0 +1,42 @@
|
|||
{ lib
|
||||
, buildPythonPackage
|
||||
, pythonOlder
|
||||
, fetchPypi
|
||||
, bwa
|
||||
, cffi
|
||||
, zlib
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "bwapy";
|
||||
version = "0.1.4";
|
||||
disabled = pythonOlder "3.6";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "090qwx3vl729zn3a7sksbviyg04kc71gpbm3nd8dalqp673x1npw";
|
||||
};
|
||||
postPatch = ''
|
||||
# replace bundled bwa
|
||||
rm -r bwa/*
|
||||
cp ${bwa}/lib/*.a ${bwa}/include/*.h bwa/
|
||||
|
||||
substituteInPlace setup.py \
|
||||
--replace 'setuptools>=49.2.0' 'setuptools'
|
||||
'';
|
||||
|
||||
buildInputs = [ zlib bwa ];
|
||||
|
||||
propagatedBuildInputs = [ cffi ];
|
||||
|
||||
# no tests
|
||||
doCheck = false;
|
||||
pythonImportsCheck = [ "bwapy" ];
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "https://github.com/ACEnglish/acebinf";
|
||||
description = "Python bindings to bwa mem aligner";
|
||||
license = licenses.mpl20;
|
||||
maintainers = with maintainers; [ ris ];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue