about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/python-modules/pytabix/default.nix
blob: db8437d8957c780c41d20468e67b24c4db7c07ae (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
{ lib, stdenv
, buildPythonPackage
, isPy3k
, fetchPypi
, zlib
}:

buildPythonPackage rec {
  pname = "pytabix";
  version = "0.1";

  src = fetchPypi {
    inherit pname version;
    sha256 = "1ldp5r4ggskji6qx4bp2qxy2vrvb3fam03ksn0gq2hdxgrlg2x07";
  };

  buildInputs = [ zlib ];

  doCheck = !isPy3k;
  preCheck = ''
    substituteInPlace test/test.py \
      --replace 'test_remote_file' 'dont_test_remote_file'
  '';
  pythonImportsCheck = [ "tabix" ];

  meta = with lib; {
    homepage = "https://github.com/slowkow/pytabix";
    description = "Python interface for tabix";
    license = licenses.mit;
    maintainers = with maintainers; [ ris ];
  };
}