Unverified Commit f52df0ff authored by Tom Hunze's avatar Tom Hunze
Browse files

python3Packages.filebytes: modernize

parent 468b4dc4
Loading
Loading
Loading
Loading
+7 −4
Original line number Diff line number Diff line
@@ -3,17 +3,18 @@
  buildPythonPackage,
  fetchFromGitHub,
  fetchpatch,
  setuptools,
}:

buildPythonPackage rec {
buildPythonPackage (finalAttrs: {
  pname = "filebytes";
  version = "0.10.2";
  format = "setuptools";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "sashs";
    repo = "filebytes";
    tag = "v${version}";
    tag = "v${finalAttrs.version}";
    hash = "sha256-8DGVCqWnEiqLCKWAYWrAjr50ZB6SMPMH+VqMqpALnVo=";
  };

@@ -26,10 +27,12 @@ buildPythonPackage rec {
    })
  ];

  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 ];
  };
}
})