Files
2026-03-22 11:22:35 +01:00

39 lines
953 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
fetchpatch,
setuptools,
}:
buildPythonPackage (finalAttrs: {
pname = "filebytes";
version = "0.10.2";
pyproject = true;
src = fetchFromGitHub {
owner = "sashs";
repo = "filebytes";
tag = "v${finalAttrs.version}";
hash = "sha256-8DGVCqWnEiqLCKWAYWrAjr50ZB6SMPMH+VqMqpALnVo=";
};
patches = [
# Upstream PR: https://github.com/sashs/filebytes/pull/36
(fetchpatch {
name = "python-3.14.patch";
url = "https://github.com/sashs/filebytes/commit/469058d50d4b7ff8da54b623a0a1aa972cd78dc6.patch";
hash = "sha256-VizYOqyJ3xpJIU4KKsYcz2DCurlfrWTgdsn84FVWD6w=";
})
];
build-system = [ setuptools ];
meta = {
homepage = "https://scoding.de/filebytes-introduction";
license = lib.licenses.bsd3;
description = "Scripts to parse ELF, PE, Mach-O and OAT (Android Runtime)";
maintainers = with lib.maintainers; [ bennofs ];
};
})