2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
isPy3k,
|
|
|
|
fetchPypi,
|
|
|
|
zlib,
|
2020-09-25 04:45:31 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pytabix";
|
|
|
|
version = "0.1";
|
2024-01-02 11:29:13 +00:00
|
|
|
format = "setuptools";
|
2020-09-25 04:45:31 +00:00
|
|
|
|
|
|
|
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" ];
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-09-25 04:45:31 +00:00
|
|
|
homepage = "https://github.com/slowkow/pytabix";
|
|
|
|
description = "Python interface for tabix";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ ris ];
|
|
|
|
};
|
|
|
|
}
|