mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-28 16:43:58 +00:00
a3deb72d8c
and replace unsupported dontCheck with doCheck attribute
55 lines
1.1 KiB
Nix
55 lines
1.1 KiB
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchPypi,
|
|
fetchFromGitHub,
|
|
brotli,
|
|
lz4,
|
|
setuptools,
|
|
}:
|
|
|
|
let
|
|
kaitai_compress = fetchFromGitHub {
|
|
owner = "kaitai-io";
|
|
repo = "kaitai_compress";
|
|
rev = "12f4cffb45d95b17033ee4f6679987656c6719cc";
|
|
hash = "sha256-l3rGbblUgxO6Y7grlsMEiT3nRIgUZV1VqTyjIgIDtyA=";
|
|
};
|
|
in
|
|
buildPythonPackage rec {
|
|
pname = "kaitaistruct";
|
|
version = "0.10";
|
|
pyproject = true;
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-oETe4pFz1q+6zye8rDna+JtlTdQYz6AJq4LZF4qa5So=";
|
|
};
|
|
|
|
preBuild = ''
|
|
ln -s ${kaitai_compress}/python/kaitai kaitai
|
|
sed '32ipackages = kaitai/compress' -i setup.cfg
|
|
'';
|
|
|
|
build-system = [ setuptools ];
|
|
|
|
propagatedBuildInputs = [
|
|
brotli
|
|
lz4
|
|
];
|
|
|
|
doCheck = false; # no tests in upstream
|
|
|
|
pythonImportsCheck = [
|
|
"kaitaistruct"
|
|
"kaitai.compress"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Kaitai Struct: runtime library for Python";
|
|
homepage = "https://github.com/kaitai-io/kaitai_struct_python_runtime";
|
|
license = licenses.mit;
|
|
maintainers = [ ];
|
|
};
|
|
}
|