about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/python-modules/pybigwig/default.nix
blob: efbc350530e57081235a9dd01c0bc099c0457bb7 (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
53
54
55
56
57
58
59
60
61
{ lib
, buildPythonPackage
, fetchFromGitHub
, numpy
, pytestCheckHook
, pythonOlder
, zlib
}:

buildPythonPackage rec {
  pname = "pybigwig";
  version = "0.3.22";
  format = "setuptools";

  disabled = pythonOlder "3.7";

  src = fetchFromGitHub {
    owner = "deeptools";
    repo = "pyBigWig";
    rev = "refs/tags/${version}";
    hash = "sha256-wJC5eXIC9PNlbCtmq671WuoIJVkh3aX7K6WArJWjyFg=";
  };

  buildInputs = [
    zlib
  ];

  nativeCheckInputs = [
    numpy
    pytestCheckHook
  ];

  pythonImportsCheck = [
    "pyBigWig"
  ];

  pytestFlagsArray = [
    "pyBigWigTest/test*.py"
  ];

  disabledTests = [
    # Test file is donwloaded from GitHub
    "testAll"
    "testBigBed"
    "testFoo"
    "testNumpyValues"
  ];

  meta = with lib; {
    description = "File access to bigBed files, and read and write access to bigWig files";
    longDescription = ''
      A Python extension, written in C, for quick access to bigBed files
      and access to and creation of bigWig files. This extension uses
      libBigWig for local and remote file access.
    '';
    homepage = "https://github.com/deeptools/pyBigWig";
    changelog = "https://github.com/deeptools/pyBigWig/releases/tag/${version}";
    license = licenses.mit;
    maintainers = with maintainers; [ scalavision ];
  };
}