python3.pkgs.kaitaistruct: add compression functionality
This commit is contained in:
parent
9126104f42
commit
d043a23408
@ -1,5 +1,18 @@
|
|||||||
{ lib, buildPythonPackage, fetchPypi }:
|
{ lib
|
||||||
|
, buildPythonPackage
|
||||||
|
, fetchPypi
|
||||||
|
, fetchFromGitHub
|
||||||
|
, lz4
|
||||||
|
}:
|
||||||
|
|
||||||
|
let
|
||||||
|
kaitai_compress = fetchFromGitHub {
|
||||||
|
owner = "kaitai-io";
|
||||||
|
repo = "kaitai_compress";
|
||||||
|
rev = "434fb42220ff58778bb9fbadb6152cad7e4f5dd0";
|
||||||
|
sha256 = "zVnkVl3amUDOB+pnw5SkMGSrVL/dTQ82E8IWfJvKC4Q=";
|
||||||
|
};
|
||||||
|
in
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "kaitaistruct";
|
pname = "kaitaistruct";
|
||||||
version = "0.9";
|
version = "0.9";
|
||||||
@ -9,9 +22,27 @@ buildPythonPackage rec {
|
|||||||
sha256 = "3d5845817ec8a4d5504379cc11bd570b038850ee49c4580bc0998c8fb1d327ad";
|
sha256 = "3d5845817ec8a4d5504379cc11bd570b038850ee49c4580bc0998c8fb1d327ad";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
preBuild = ''
|
||||||
|
ln -s ${kaitai_compress}/python/kaitai kaitai
|
||||||
|
sed '28ipackages = kaitai/compress' -i setup.cfg
|
||||||
|
'';
|
||||||
|
|
||||||
|
propagatedBuildInputs = [
|
||||||
|
lz4
|
||||||
|
];
|
||||||
|
|
||||||
|
# no tests
|
||||||
|
dontCheck = true;
|
||||||
|
|
||||||
|
pythonImportsCheck = [
|
||||||
|
"kaitaistruct"
|
||||||
|
"kaitai.compress"
|
||||||
|
];
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "Kaitai Struct: runtime library for Python";
|
description = "Kaitai Struct: runtime library for Python";
|
||||||
homepage = "https://github.com/kaitai-io/kaitai_struct_python_runtime";
|
homepage = "https://github.com/kaitai-io/kaitai_struct_python_runtime";
|
||||||
license = licenses.mit;
|
license = licenses.mit;
|
||||||
|
maintainers = teams.determinatesystems.members;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user