1{ lib
2, buildPythonPackage
3, fetchPypi
4, pythonOlder
5, cython
6, zstd
7}:
8
9buildPythonPackage rec {
10 pname = "indexed_zstd";
11 version = "1.6.0";
12 format = "setuptools";
13
14 disabled = pythonOlder "3.6";
15
16 src = fetchPypi {
17 inherit pname version;
18 hash = "sha256-icCerrv6ihBjSTS4Fsw7qhoA5ha8yegfMVRiIOhTvvY=";
19 };
20
21 nativeBuildInputs = [ cython ];
22
23 buildInputs = [ zstd.dev ];
24
25 # has no tests
26 doCheck = false;
27
28 pythonImportsCheck = [ "indexed_zstd" ];
29
30 meta = with lib; {
31 description = "Python library to seek within compressed zstd files";
32 homepage = "https://github.com/martinellimarco/indexed_zstd";
33 license = licenses.mit;
34 maintainers = with lib.maintainers; [ mxmlnkn ];
35 platforms = platforms.all;
36 };
37}