1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 pythonOlder,
6 cython,
7 setuptools,
8 wheel,
9 pysam,
10 unittestCheckHook,
11}:
12
13buildPythonPackage rec {
14 pname = "pywfa";
15 version = "0.5.1";
16 pyproject = true;
17
18 disabled = pythonOlder "3.7";
19
20 src = fetchFromGitHub {
21 owner = "kcleal";
22 repo = "pywfa";
23 tag = "v${version}";
24 hash = "sha256-TeJ7Jq4LR+I1+zeMeBtHZa9dR+CRJJG5sT99tB227P8=";
25 };
26
27 nativeBuildInputs = [
28 cython
29 setuptools
30 wheel
31 ];
32
33 nativeCheckInputs = [
34 pysam
35 unittestCheckHook
36 ];
37
38 preCheck = ''
39 cd pywfa/tests
40 '';
41
42 pythonImportsCheck = [
43 "pywfa"
44 "pywfa.align"
45 ];
46
47 meta = with lib; {
48 description = "Python wrapper for wavefront alignment using WFA2-lib";
49 homepage = "https://github.com/kcleal/pywfa";
50 changelog = "https://github.com/kcleal/pywfa/releases/tag/v${version}";
51 license = licenses.mit;
52 maintainers = with maintainers; [ natsukium ];
53 };
54}