Something went wrong. Try again.
lol
Something went wrong. Try again.
951 B · 50 lines
Nix
at master
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051{ lib, buildPythonPackage, pythonAtLeast, fetchPypi, bwa, cffi, zlib,}:
buildPythonPackage rec { pname = "bwapy"; version = "0.1.4"; format = "setuptools";
# uses the removed imp module disabled = 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 = { homepage = "https://github.com/ACEnglish/bwapy"; description = "Python bindings to bwa mem aligner"; mainProgram = "bwamempy"; license = lib.licenses.mpl20; maintainers = with lib.maintainers; [ ris ]; };}