about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/python-modules/pyfaidx/default.nix
blob: a2815c3e1e2d20bfa58a6fe67166d6ba463b4c5d (plain) (blame)
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
50
51
52
{ lib
, buildPythonPackage
, fetchPypi
, nose
, numpy
, setuptools-scm
, six
, pytestCheckHook
}:

buildPythonPackage rec {
  pname = "pyfaidx";
  version = "0.6.3.1";
  format = "setuptools";

  src = fetchPypi {
    inherit pname version;
    sha256 = "93adf036a75e08dc9b1dcd59de6a4db2f65a48c603edabe2e499764b6535ed50";
  };

  nativeBuildInputs = [
    setuptools-scm
  ];

  propagatedBuildInputs = [
    six
  ];

  checkInputs = [
    nose
    numpy
    pytestCheckHook
  ];

  disabledTests = [
    # PyPI releases don't ship all the needed files for the tests
    "test_index_zero_length"
    "test_fetch_zero_length"
    "test_read_back_index"
  ];

  pythonImportsCheck = [
    "pyfaidx"
  ];

  meta = with lib; {
    homepage = "https://github.com/mdshw5/pyfaidx";
    description = "Python classes for indexing, retrieval, and in-place modification of FASTA files using a samtools compatible index";
    license = licenses.bsd3;
    maintainers = with maintainers; [ jbedo ];
  };
}