Merge pull request #290171 from fabaff/wheel-inspect-fix

python311Packages.wheel-inspect: refactor
This commit is contained in:
Fabian Affolter 2024-02-20 17:58:14 +01:00 committed by GitHub
commit 8fa288d943
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -3,8 +3,10 @@
, buildPythonPackage
, entry-points-txt
, fetchFromGitHub
, hatchling
, headerparser
, jsonschema
, pythonRelaxDepsHook
, packaging
, pytestCheckHook
, pythonOlder
@ -15,17 +17,32 @@
buildPythonPackage rec {
pname = "wheel-inspect";
version = "1.7.1";
format = "pyproject";
pyproject = true;
disabled = pythonOlder "3.6";
src = fetchFromGitHub {
owner = "jwodder";
repo = pname;
rev = "v${version}";
repo = "wheel-inspect";
rev = "refs/tags/v${version}";
hash = "sha256-pB9Rh+A7GlxnYuka2mTSBoxpoyYCzoaMPVgsHDlpos0=";
};
postPatch = ''
substituteInPlace tox.ini \
--replace-fail "--cov=wheel_inspect --no-cov-on-fail" ""
'';
pythonRelaxDeps = [
"entry-points-txt"
"headerparser"
];
nativeBuildInputs = [
hatchling
pythonRelaxDepsHook
];
propagatedBuildInputs = [
attrs
entry-points-txt
@ -40,13 +57,6 @@ buildPythonPackage rec {
pytestCheckHook
];
postPatch = ''
substituteInPlace tox.ini \
--replace " --cov=wheel_inspect --no-cov-on-fail" ""
substituteInPlace setup.cfg \
--replace "entry-points-txt ~= 0.1.0" "entry-points-txt >= 0.1.0"
'';
pythonImportsCheck = [
"wheel_inspect"
];
@ -59,6 +69,7 @@ buildPythonPackage rec {
meta = with lib; {
description = "Extract information from wheels";
homepage = "https://github.com/jwodder/wheel-inspect";
changelog = "https://github.com/wheelodex/wheel-inspect/releases/tag/v${version}";
license = with licenses; [ mit ];
maintainers = with maintainers; [ ayazhafiz ];
};