2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
attrs,
|
|
|
|
buildPythonPackage,
|
|
|
|
entry-points-txt,
|
|
|
|
fetchFromGitHub,
|
|
|
|
hatchling,
|
|
|
|
headerparser,
|
|
|
|
jsonschema,
|
|
|
|
pythonRelaxDepsHook,
|
|
|
|
packaging,
|
|
|
|
pytestCheckHook,
|
|
|
|
pythonOlder,
|
|
|
|
readme-renderer,
|
|
|
|
setuptools,
|
|
|
|
wheel-filename,
|
2021-12-06 16:07:01 +00:00
|
|
|
}:
|
|
|
|
|
2022-06-16 17:23:12 +00:00
|
|
|
buildPythonPackage rec {
|
2021-12-06 16:07:01 +00:00
|
|
|
pname = "wheel-inspect";
|
2022-06-16 17:23:12 +00:00
|
|
|
version = "1.7.1";
|
2024-02-29 20:09:43 +00:00
|
|
|
pyproject = true;
|
2022-06-16 17:23:12 +00:00
|
|
|
|
|
|
|
disabled = pythonOlder "3.6";
|
2021-12-06 16:07:01 +00:00
|
|
|
|
2022-06-16 17:23:12 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "jwodder";
|
2024-02-29 20:09:43 +00:00
|
|
|
repo = "wheel-inspect";
|
|
|
|
rev = "refs/tags/v${version}";
|
2022-06-16 17:23:12 +00:00
|
|
|
hash = "sha256-pB9Rh+A7GlxnYuka2mTSBoxpoyYCzoaMPVgsHDlpos0=";
|
2021-12-06 16:07:01 +00:00
|
|
|
};
|
|
|
|
|
2024-02-29 20:09:43 +00:00
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace tox.ini \
|
|
|
|
--replace-fail "--cov=wheel_inspect --no-cov-on-fail" ""
|
|
|
|
'';
|
|
|
|
|
|
|
|
pythonRelaxDeps = [
|
|
|
|
"entry-points-txt"
|
|
|
|
"headerparser"
|
|
|
|
];
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
hatchling
|
|
|
|
pythonRelaxDepsHook
|
|
|
|
];
|
|
|
|
|
2021-12-06 16:07:01 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
attrs
|
|
|
|
entry-points-txt
|
|
|
|
headerparser
|
|
|
|
packaging
|
2024-01-25 14:12:00 +00:00
|
|
|
readme-renderer
|
2021-12-06 16:07:01 +00:00
|
|
|
wheel-filename
|
|
|
|
];
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
2022-06-16 17:23:12 +00:00
|
|
|
|
2024-05-15 15:35:15 +00:00
|
|
|
checkInputs = [
|
|
|
|
setuptools
|
|
|
|
jsonschema
|
|
|
|
];
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
pythonImportsCheck = [ "wheel_inspect" ];
|
2022-06-16 17:23:12 +00:00
|
|
|
|
|
|
|
pytestFlagsArray = [
|
|
|
|
"-W"
|
|
|
|
"ignore::DeprecationWarning"
|
|
|
|
];
|
|
|
|
|
2021-12-06 16:07:01 +00:00
|
|
|
meta = with lib; {
|
|
|
|
description = "Extract information from wheels";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "wheel2json";
|
2022-06-16 17:23:12 +00:00
|
|
|
homepage = "https://github.com/jwodder/wheel-inspect";
|
2024-02-29 20:09:43 +00:00
|
|
|
changelog = "https://github.com/wheelodex/wheel-inspect/releases/tag/v${version}";
|
2021-12-06 16:07:01 +00:00
|
|
|
license = with licenses; [ mit ];
|
2022-06-16 17:23:12 +00:00
|
|
|
maintainers = with maintainers; [ ayazhafiz ];
|
2021-12-06 16:07:01 +00:00
|
|
|
};
|
|
|
|
}
|