uboot: (firmwareOdroidC2/C4) don't invoke patch tool, use patches = [] instead
https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
This commit is contained in:
commit
56de2bcd43
30691 changed files with 3076956 additions and 0 deletions
66
pkgs/development/python-modules/extractcode/default.nix
Normal file
66
pkgs/development/python-modules/extractcode/default.nix
Normal file
|
|
@ -0,0 +1,66 @@
|
|||
{ lib
|
||||
, fetchPypi
|
||||
, buildPythonPackage
|
||||
, setuptools-scm
|
||||
, typecode
|
||||
, patch
|
||||
, extractcode-libarchive
|
||||
, extractcode-7z
|
||||
, pytestCheckHook
|
||||
, pytest-xdist
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "extractcode";
|
||||
version = "31.0.0";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "sha256-gIGTkum8+BKfdNiQT+ipjA3+0ngjVoQnNygsAoMRPYg=";
|
||||
};
|
||||
|
||||
dontConfigure = true;
|
||||
|
||||
nativeBuildInputs = [
|
||||
setuptools-scm
|
||||
];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
typecode
|
||||
patch
|
||||
extractcode-libarchive
|
||||
extractcode-7z
|
||||
];
|
||||
|
||||
checkInputs = [
|
||||
pytestCheckHook
|
||||
pytest-xdist
|
||||
];
|
||||
|
||||
# CLI test tests the cli which we can't do until after install
|
||||
disabledTestPaths = [
|
||||
"tests/test_extractcode_cli.py"
|
||||
];
|
||||
|
||||
# test_uncompress_* wants to use a binary to extract instead of the provided library
|
||||
disabledTests = [
|
||||
"test_uncompress_lz4_basic"
|
||||
"test_extract_tarlz4_basic"
|
||||
"test_extract_rar_with_trailing_data"
|
||||
# tries to parse /boot/vmlinuz-*, which is not available in the nix sandbox
|
||||
"test_can_extract_qcow2_vm_image_as_tarball"
|
||||
"test_can_extract_qcow2_vm_image_not_as_tarball"
|
||||
"test_can_listfs_from_qcow2_image"
|
||||
];
|
||||
|
||||
pythonImportsCheck = [
|
||||
"extractcode"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Universal archive extractor using z7zip, libarchve, other libraries and the Python standard library";
|
||||
homepage = "https://github.com/nexB/extractcode";
|
||||
license = licenses.asl20;
|
||||
maintainers = teams.determinatesystems.members;
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue