depot/third_party/nixpkgs/pkgs/development/python-modules/wheel-inspect/default.nix
Default email a0cb138ada Project import generated by Copybara.
GitOrigin-RevId: a100acd7bbf105915b0004427802286c37738fef
2023-02-02 18:25:31 +00:00

65 lines
1.2 KiB
Nix

{ lib
, attrs
, buildPythonPackage
, entry-points-txt
, fetchFromGitHub
, headerparser
, jsonschema
, packaging
, pytestCheckHook
, pythonOlder
, readme_renderer
, wheel-filename
}:
buildPythonPackage rec {
pname = "wheel-inspect";
version = "1.7.1";
format = "pyproject";
disabled = pythonOlder "3.6";
src = fetchFromGitHub {
owner = "jwodder";
repo = pname;
rev = "v${version}";
hash = "sha256-pB9Rh+A7GlxnYuka2mTSBoxpoyYCzoaMPVgsHDlpos0=";
};
propagatedBuildInputs = [
attrs
entry-points-txt
headerparser
packaging
readme_renderer
wheel-filename
];
nativeCheckInputs = [
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"
];
meta = with lib; {
description = "Extract information from wheels";
homepage = "https://github.com/jwodder/wheel-inspect";
license = with licenses; [ mit ];
maintainers = with maintainers; [ ayazhafiz ];
};
}