c7cb07f092
GitOrigin-RevId: 1536926ef5621b09bba54035ae2bb6d806d72ac8
76 lines
1.4 KiB
Nix
76 lines
1.4 KiB
Nix
{ lib
|
|
, attrs
|
|
, buildPythonPackage
|
|
, entry-points-txt
|
|
, fetchFromGitHub
|
|
, hatchling
|
|
, headerparser
|
|
, jsonschema
|
|
, pythonRelaxDepsHook
|
|
, packaging
|
|
, pytestCheckHook
|
|
, pythonOlder
|
|
, readme-renderer
|
|
, wheel-filename
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "wheel-inspect";
|
|
version = "1.7.1";
|
|
pyproject = true;
|
|
|
|
disabled = pythonOlder "3.6";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "jwodder";
|
|
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
|
|
headerparser
|
|
packaging
|
|
readme-renderer
|
|
wheel-filename
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
jsonschema
|
|
pytestCheckHook
|
|
];
|
|
|
|
pythonImportsCheck = [
|
|
"wheel_inspect"
|
|
];
|
|
|
|
pytestFlagsArray = [
|
|
"-W"
|
|
"ignore::DeprecationWarning"
|
|
];
|
|
|
|
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 ];
|
|
};
|
|
}
|