Merge pull request #290171 from fabaff/wheel-inspect-fix
python311Packages.wheel-inspect: refactor
This commit is contained in:
commit
8fa288d943
@ -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 ];
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user