python3Packages.filebytes: fix build with python 3.14; several improvements (#502166)
This commit is contained in:
@@ -1,23 +1,38 @@
|
||||
{
|
||||
lib,
|
||||
buildPythonPackage,
|
||||
fetchPypi,
|
||||
fetchFromGitHub,
|
||||
fetchpatch,
|
||||
setuptools,
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
buildPythonPackage (finalAttrs: {
|
||||
pname = "filebytes";
|
||||
version = "0.10.2";
|
||||
format = "setuptools";
|
||||
pyproject = true;
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "0h97i6h525hg401dvvaa5krxi184qpvldbdn0izmirvr9pvh4hkn";
|
||||
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.gpl2;
|
||||
license = lib.licenses.bsd3;
|
||||
description = "Scripts to parse ELF, PE, Mach-O and OAT (Android Runtime)";
|
||||
maintainers = with lib.maintainers; [ bennofs ];
|
||||
};
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user