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