2021-11-01 01:45:41 +00:00
|
|
|
{ lib
|
2022-06-05 22:40:27 +01:00
|
|
|
, attrs
|
2021-11-01 01:45:41 +00:00
|
|
|
, buildPythonPackage
|
2022-06-05 22:40:27 +01:00
|
|
|
, entry-points-txt
|
|
|
|
, fetchFromGitHub
|
|
|
|
, headerparser
|
|
|
|
, jsonschema
|
|
|
|
, packaging
|
|
|
|
, pytestCheckHook
|
|
|
|
, pythonOlder
|
|
|
|
, readme_renderer
|
|
|
|
, wheel-filename
|
2021-11-01 01:45:41 +00:00
|
|
|
}:
|
|
|
|
|
2022-06-05 22:40:27 +01:00
|
|
|
buildPythonPackage rec {
|
2021-11-01 01:45:41 +00:00
|
|
|
pname = "wheel-inspect";
|
2022-06-05 22:40:27 +01:00
|
|
|
version = "1.7.1";
|
|
|
|
format = "pyproject";
|
2021-11-01 01:45:41 +00:00
|
|
|
|
2022-06-05 22:40:27 +01:00
|
|
|
disabled = pythonOlder "3.6";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "jwodder";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
|
|
|
hash = "sha256-pB9Rh+A7GlxnYuka2mTSBoxpoyYCzoaMPVgsHDlpos0=";
|
2021-11-01 01:45:41 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
attrs
|
|
|
|
entry-points-txt
|
|
|
|
headerparser
|
|
|
|
packaging
|
2022-06-05 22:40:27 +01:00
|
|
|
readme_renderer
|
2021-11-01 01:45:41 +00:00
|
|
|
wheel-filename
|
|
|
|
];
|
|
|
|
|
2022-06-05 22:40:27 +01:00
|
|
|
checkInputs = [
|
|
|
|
jsonschema
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace tox.ini \
|
|
|
|
--replace " --cov=wheel_inspect --no-cov-on-fail" ""
|
2022-06-05 23:20:46 +01:00
|
|
|
substituteInPlace setup.cfg \
|
|
|
|
--replace "entry-points-txt ~= 0.1.0" "entry-points-txt >= 0.1.0"
|
2022-06-05 22:40:27 +01:00
|
|
|
'';
|
|
|
|
|
|
|
|
pythonImportsCheck = [
|
|
|
|
"wheel_inspect"
|
|
|
|
];
|
|
|
|
|
2022-06-05 23:20:46 +01:00
|
|
|
pytestFlagsArray = [
|
|
|
|
"-W"
|
|
|
|
"ignore::DeprecationWarning"
|
|
|
|
];
|
|
|
|
|
2021-11-01 01:45:41 +00:00
|
|
|
meta = with lib; {
|
|
|
|
description = "Extract information from wheels";
|
2022-06-05 22:40:27 +01:00
|
|
|
homepage = "https://github.com/jwodder/wheel-inspect";
|
2021-11-01 01:45:41 +00:00
|
|
|
license = with licenses; [ mit ];
|
2022-06-05 22:40:27 +01:00
|
|
|
maintainers = with maintainers; [ ayazhafiz ];
|
2021-11-01 01:45:41 +00:00
|
|
|
};
|
|
|
|
}
|