kaitaistruct: refactor

and replace unsupported dontCheck with doCheck attribute
This commit is contained in:
Alexis Hildebrandt 2024-05-18 19:10:40 +02:00
parent b4fbf5f827
commit a3deb72d8c

View File

@ -5,6 +5,7 @@
fetchFromGitHub,
brotli,
lz4,
setuptools,
}:
let
@ -18,7 +19,7 @@ in
buildPythonPackage rec {
pname = "kaitaistruct";
version = "0.10";
format = "setuptools";
pyproject = true;
src = fetchPypi {
inherit pname version;
@ -30,13 +31,14 @@ buildPythonPackage rec {
sed '32ipackages = kaitai/compress' -i setup.cfg
'';
build-system = [ setuptools ];
propagatedBuildInputs = [
brotli
lz4
];
# no tests
dontCheck = true;
doCheck = false; # no tests in upstream
pythonImportsCheck = [
"kaitaistruct"