1{ lib 2, buildPythonPackage 3, isPy3k 4, fetchPypi 5, zlib 6}: 7 8buildPythonPackage rec { 9 pname = "pytabix"; 10 version = "0.1"; 11 12 src = fetchPypi { 13 inherit pname version; 14 sha256 = "1ldp5r4ggskji6qx4bp2qxy2vrvb3fam03ksn0gq2hdxgrlg2x07"; 15 }; 16 17 buildInputs = [ zlib ]; 18 19 doCheck = !isPy3k; 20 preCheck = '' 21 substituteInPlace test/test.py \ 22 --replace 'test_remote_file' 'dont_test_remote_file' 23 ''; 24 pythonImportsCheck = [ "tabix" ]; 25 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 }; 32}