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