1{ lib
2, buildPythonPackage
3, fetchPypi
4, lzfse
5}:
6buildPythonPackage rec {
7 pname = "pyliblzfse";
8 version = "0.4.1";
9
10 src = fetchPypi {
11 inherit pname version;
12 sha256 = "bb0b899b3830c02fdf3dbde48ea59611833f366fef836e5c32cf8145134b7d3d";
13 };
14
15 preBuild = ''
16 rm -r lzfse
17 ln -s ${lzfse.src} lzfse
18 '';
19
20 # no tests
21 doCheck = false;
22
23 pythonImportsCheck = [
24 "liblzfse"
25 ];
26
27 meta = with lib; {
28 description = "Python bindings for LZFSE";
29 homepage = "https://github.com/ydkhatri/pyliblzfse";
30 license = licenses.mit;
31 maintainers = [ ];
32 };
33}