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
|
|
|
|
, headerparser
|
|
|
|
, jsonschema
|
|
|
|
, packaging
|
|
|
|
, pytestCheckHook
|
|
|
|
, pythonOlder
|
|
|
|
, readme_renderer
|
|
|
|
, 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";
|
|
|
|
format = "pyproject";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.6";
|
2021-12-06 16:07:01 +00:00
|
|
|
|
2022-06-16 17:23:12 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "jwodder";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
|
|
|
hash = "sha256-pB9Rh+A7GlxnYuka2mTSBoxpoyYCzoaMPVgsHDlpos0=";
|
2021-12-06 16:07:01 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
attrs
|
|
|
|
entry-points-txt
|
|
|
|
headerparser
|
|
|
|
packaging
|
2022-06-16 17:23:12 +00:00
|
|
|
readme_renderer
|
2021-12-06 16:07:01 +00:00
|
|
|
wheel-filename
|
|
|
|
];
|
|
|
|
|
2022-06-16 17:23:12 +00:00
|
|
|
checkInputs = [
|
|
|
|
jsonschema
|
|
|
|
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"
|
|
|
|
];
|
|
|
|
|
|
|
|
pytestFlagsArray = [
|
|
|
|
"-W"
|
|
|
|
"ignore::DeprecationWarning"
|
|
|
|
];
|
|
|
|
|
2021-12-06 16:07:01 +00:00
|
|
|
meta = with lib; {
|
|
|
|
description = "Extract information from wheels";
|
2022-06-16 17:23:12 +00:00
|
|
|
homepage = "https://github.com/jwodder/wheel-inspect";
|
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
|
|
|
};
|
|
|
|
}
|