Skip to content

Commit

Permalink
Merge pull request #313655 from fabaff/distorm3-py312
Browse files Browse the repository at this point in the history
python312Packages.distorm3: disable on Python 3.12
  • Loading branch information
wegank committed May 22, 2024
2 parents 2db5894 + 577af7e commit 5b0e7d5
Showing 1 changed file with 22 additions and 11 deletions.
33 changes: 22 additions & 11 deletions pkgs/development/python-modules/distorm3/default.nix
Original file line number Diff line number Diff line change
@@ -1,25 +1,33 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, pythonOlder
, pytestCheckHook
, yasm
{
lib,
buildPythonPackage,
fetchFromGitHub,
pythonAtLeast,
pythonOlder,
pytestCheckHook,
setuptools,
yasm,
}:

buildPythonPackage rec {
pname = "distorm3";
version = "3.5.2";
format = "setuptools";
pyproject = true;

disabled = pythonOlder "3.5";
# Still uses distutils, https://github.com/gdabah/distorm/issues/191
disabled = pythonOlder "3.5" || pythonAtLeast "3.12";

src = fetchFromGitHub {
owner = "gdabah";
repo = "distorm";
rev = version;
sha256 = "012bh1l2w7i9q8rcnznj3x0lra09d5yxd3r42cbrqdwl1mmg26qn";
rev = "refs/tags/${version}";
hash = "sha256-Fhvxag2UN5wXEySP1n1pCahMQR/SfssywikeLmiASwQ=";
};

build-system = [
setuptools
];

nativeCheckInputs = [
pytestCheckHook
yasm
Expand All @@ -30,11 +38,14 @@ buildPythonPackage rec {
"test_dummy"
];

pythonImportsCheck = [ "distorm3" ];
pythonImportsCheck = [
"distorm3"
];

meta = with lib; {
description = "Disassembler library for x86/AMD64";
homepage = "https://github.com/gdabah/distorm";
changelog = "https://github.com/gdabah/distorm/releases/tag/${version}";
license = licenses.bsd3;
maintainers = with maintainers; [ fab ];
};
Expand Down

0 comments on commit 5b0e7d5

Please sign in to comment.