Merge pull request #119126 from fabaff/pycomfoconnect
[NixPkgs.git] / pkgs / development / python-modules / pytabix / default.nix
blobfb2e622eac9c02ba07bdc4c1126b74b4cf4cf4af
1 { lib
2 , buildPythonPackage
3 , isPy3k
4 , fetchPypi
5 , zlib
6 }:
8 buildPythonPackage rec {
9   pname = "pytabix";
10   version = "0.1";
12   src = fetchPypi {
13     inherit pname version;
14     sha256 = "1ldp5r4ggskji6qx4bp2qxy2vrvb3fam03ksn0gq2hdxgrlg2x07";
15   };
17   buildInputs = [ zlib ];
19   doCheck = !isPy3k;
20   preCheck = ''
21     substituteInPlace test/test.py \
22       --replace 'test_remote_file' 'dont_test_remote_file'
23   '';
24   pythonImportsCheck = [ "tabix" ];
26   meta = with lib; {
27     homepage = "https://github.com/slowkow/pytabix";
28     description = "Python interface for tabix";
29     license = licenses.mit;
30     maintainers = with maintainers; [ ris ];
31   };