summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFabian Affolter <mail@fabian-affolter.ch>2024-05-22 13:33:54 +0200
committerFabian Affolter <mail@fabian-affolter.ch>2024-05-22 13:33:54 +0200
commit53fb4bf7c7beebf5a2e29a20f003e0a9a55d4abf (patch)
tree9bb3b770fe2b9062a471d38afcdbd8de8a065ea5
parentpython312Packages.distorm3: format with nixfmt (diff)
downloadnixpkgs-53fb4bf7c7beebf5a2e29a20f003e0a9a55d4abf.tar.gz
python311Packages.distorm3: refactor
-rw-r--r--pkgs/development/python-modules/distorm3/default.nix16
1 files changed, 12 insertions, 4 deletions
diff --git a/pkgs/development/python-modules/distorm3/default.nix b/pkgs/development/python-modules/distorm3/default.nix
index eed767b69426..3f3e017cb328 100644
--- a/pkgs/development/python-modules/distorm3/default.nix
+++ b/pkgs/development/python-modules/distorm3/default.nix
@@ -4,23 +4,28 @@
fetchFromGitHub,
pythonOlder,
pytestCheckHook,
+ setuptools,
yasm,
}:
buildPythonPackage rec {
pname = "distorm3";
version = "3.5.2";
- format = "setuptools";
+ pyproject = true;
disabled = pythonOlder "3.5";
src = fetchFromGitHub {
owner = "gdabah";
repo = "distorm";
- rev = version;
- sha256 = "012bh1l2w7i9q8rcnznj3x0lra09d5yxd3r42cbrqdwl1mmg26qn";
+ rev = "refs/tags/${version}";
+ hash = "sha256-Fhvxag2UN5wXEySP1n1pCahMQR/SfssywikeLmiASwQ=";
};
+ build-system = [
+ setuptools
+ ];
+
nativeCheckInputs = [
pytestCheckHook
yasm
@@ -31,11 +36,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 ];
};