push sheeet
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s

This commit is contained in:
Dark Steveneq
2025-10-09 14:15:47 +02:00
commit 646b892680
49168 changed files with 5897842 additions and 0 deletions

View File

@@ -0,0 +1,51 @@
{
lib,
buildPythonPackage,
pythonAtLeast,
pythonOlder,
fetchPypi,
bwa,
cffi,
zlib,
}:
buildPythonPackage rec {
pname = "bwapy";
version = "0.1.4";
format = "setuptools";
# uses the removed imp module
disabled = pythonOlder "3.6" || pythonAtLeast "3.12";
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/bwapy";
description = "Python bindings to bwa mem aligner";
mainProgram = "bwamempy";
license = licenses.mpl20;
maintainers = with maintainers; [ ris ];
};
}