My personal project and infrastructure archive
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
nomicon/pkgs/development/python-modules/wheel-inspect/default.nix

65 lines
1.2 KiB

{ 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
];
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"
];
meta = with lib; {
description = "Extract information from wheels";
homepage = "https://github.com/jwodder/wheel-inspect";
license = with licenses; [ mit ];
maintainers = with maintainers; [ ayazhafiz ];
};
}