summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/affine-gaps/default.nix
blob: a71d94b2ac93e0d06dcfb6e0babc6a452902b37b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
{
  biopython,
  buildPythonPackage,
  colorama,
  fetchFromGitHub,
  hatchling,
  lib,
  numpy,
  pytest-repeat,
  pytestCheckHook,
}:

buildPythonPackage rec {
  pname = "affine-gaps";
  version = "0.2.4";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "gata-bio";
    repo = "affine-gaps";
    tag = "v${version}";
    hash = "sha256-WMH2wUqzA196FSe2TpfslQVW0PGwk7lGMRSKyfCG9rg=";
  };

  build-system = [ hatchling ];

  dependencies = [
    colorama
    numpy
  ];

  pythonImportsCheck = [ "affine_gaps" ];

  nativeCheckInputs = [
    biopython
    pytest-repeat
    pytestCheckHook
  ];

  enabledTestPaths = [ "test.py" ];

  meta = {
    changelog = "https://github.com/gata-bio/affine-gaps/releases/tag/${src.tag}";
    homepage = "https://github.com/gata-bio/affine-gaps";
    license = lib.licenses.asl20;
    mainProgram = "affine-gaps";
    maintainers = [ lib.maintainers.dotlambda ];
  };
}