1{ lib 2, attrs 3, buildPythonPackage 4, entry-points-txt 5, fetchFromGitHub 6, headerparser 7, jsonschema 8, packaging 9, pytestCheckHook 10, pythonOlder 11, readme_renderer 12, wheel-filename 13}: 14 15buildPythonPackage rec { 16 pname = "wheel-inspect"; 17 version = "1.7.1"; 18 format = "pyproject"; 19 20 disabled = pythonOlder "3.6"; 21 22 src = fetchFromGitHub { 23 owner = "jwodder"; 24 repo = pname; 25 rev = "v${version}"; 26 hash = "sha256-pB9Rh+A7GlxnYuka2mTSBoxpoyYCzoaMPVgsHDlpos0="; 27 }; 28 29 propagatedBuildInputs = [ 30 attrs 31 entry-points-txt 32 headerparser 33 packaging 34 readme_renderer 35 wheel-filename 36 ]; 37 38 nativeCheckInputs = [ 39 jsonschema 40 pytestCheckHook 41 ]; 42 43 postPatch = '' 44 substituteInPlace tox.ini \ 45 --replace " --cov=wheel_inspect --no-cov-on-fail" "" 46 substituteInPlace setup.cfg \ 47 --replace "entry-points-txt ~= 0.1.0" "entry-points-txt >= 0.1.0" 48 ''; 49 50 pythonImportsCheck = [ 51 "wheel_inspect" 52 ]; 53 54 pytestFlagsArray = [ 55 "-W" 56 "ignore::DeprecationWarning" 57 ]; 58 59 meta = with lib; { 60 description = "Extract information from wheels"; 61 homepage = "https://github.com/jwodder/wheel-inspect"; 62 license = with licenses; [ mit ]; 63 maintainers = with maintainers; [ ayazhafiz ]; 64 }; 65}