2021-12-06 16:07:01 +00:00
|
|
|
{ lib
|
2022-06-16 17:23:12 +00:00
|
|
|
, attrs
|
2021-12-06 16:07:01 +00:00
|
|
|
, buildPythonPackage
|
2022-06-16 17:23:12 +00:00
|
|
|
, entry-points-txt
|
|
|
|
, fetchFromGitHub
|
2024-02-29 20:09:43 +00:00
|
|
|
, hatchling
|
2022-06-16 17:23:12 +00:00
|
|
|
, headerparser
|
|
|
|
, jsonschema
|
2024-02-29 20:09:43 +00:00
|
|
|
, pythonRelaxDepsHook
|
2022-06-16 17:23:12 +00:00
|
|
|
, packaging
|
|
|
|
, pytestCheckHook
|
|
|
|
, pythonOlder
|
2024-01-25 14:12:00 +00:00
|
|
|
, readme-renderer
|
2022-06-16 17:23:12 +00:00
|
|
|
, 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
|
|
|
|
];
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2022-06-16 17:23:12 +00:00
|
|
|
jsonschema
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
|
|
|
pythonImportsCheck = [
|
|
|
|
"wheel_inspect"
|
|
|
|
];
|
|
|
|
|
|
|
|
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
|
|
|
};
|
|
|
|
}
|