02dab4ab5c
Long term we should move everything over to `pyproject = true`, but in the mean time we can work towards deprecating the implicit `format` paremeter. cc https://github.com/NixOS/nixpkgs/issues/253154 cc @mweinelt @figsoda
33 lines
677 B
Nix
33 lines
677 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, isPy3k
|
|
, fetchPypi
|
|
, zlib
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "pytabix";
|
|
version = "0.1";
|
|
format = "setuptools";
|
|
|
|
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 ];
|
|
};
|
|
}
|