From b3bf51cbb64364560371e44aec8378c8aec5ab52 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Sat, 17 May 2025 23:09:23 +0200 Subject: [PATCH] python312Packages.wheel-inspect: refactor --- .../python-modules/wheel-inspect/default.nix | 19 +++++++------------ 1 file changed, 7 insertions(+), 12 deletions(-) diff --git a/pkgs/development/python-modules/wheel-inspect/default.nix b/pkgs/development/python-modules/wheel-inspect/default.nix index 977f96b16f38..125b6b48df4d 100644 --- a/pkgs/development/python-modules/wheel-inspect/default.nix +++ b/pkgs/development/python-modules/wheel-inspect/default.nix @@ -21,7 +21,7 @@ buildPythonPackage rec { version = "1.7.2"; pyproject = true; - disabled = pythonOlder "3.6"; + disabled = pythonOlder "3.8"; src = fetchFromGitHub { owner = "jwodder"; @@ -35,11 +35,9 @@ buildPythonPackage rec { "headerparser" ]; - nativeBuildInputs = [ - hatchling - ]; + build-system = [ hatchling ]; - propagatedBuildInputs = [ + dependencies = [ attrs entry-points-txt headerparser @@ -49,12 +47,9 @@ buildPythonPackage rec { ]; nativeCheckInputs = [ + setuptools pytestCheckHook pytest-cov-stub - ]; - - checkInputs = [ - setuptools jsonschema ]; @@ -67,10 +62,10 @@ buildPythonPackage rec { meta = with lib; { description = "Extract information from wheels"; - mainProgram = "wheel2json"; homepage = "https://github.com/jwodder/wheel-inspect"; - changelog = "https://github.com/wheelodex/wheel-inspect/releases/tag/v${version}"; - license = with licenses; [ mit ]; + changelog = "https://github.com/wheelodex/wheel-inspect/releases/tag/${src.tag}"; + license = licenses.mit; maintainers = with maintainers; [ ayazhafiz ]; + mainProgram = "wheel2json"; }; }