diff options
Diffstat (limited to 'nixpkgs/pkgs/development/python-modules/wheel-inspect/default.nix')
-rw-r--r-- | nixpkgs/pkgs/development/python-modules/wheel-inspect/default.nix | 31 |
1 files changed, 21 insertions, 10 deletions
diff --git a/nixpkgs/pkgs/development/python-modules/wheel-inspect/default.nix b/nixpkgs/pkgs/development/python-modules/wheel-inspect/default.nix index 7d79d18f443b..17195fa67dae 100644 --- a/nixpkgs/pkgs/development/python-modules/wheel-inspect/default.nix +++ b/nixpkgs/pkgs/development/python-modules/wheel-inspect/default.nix @@ -3,8 +3,10 @@ , buildPythonPackage , entry-points-txt , fetchFromGitHub +, hatchling , headerparser , jsonschema +, pythonRelaxDepsHook , packaging , pytestCheckHook , pythonOlder @@ -15,17 +17,32 @@ buildPythonPackage rec { pname = "wheel-inspect"; version = "1.7.1"; - format = "pyproject"; + pyproject = true; disabled = pythonOlder "3.6"; src = fetchFromGitHub { owner = "jwodder"; - repo = pname; - rev = "v${version}"; + repo = "wheel-inspect"; + rev = "refs/tags/v${version}"; hash = "sha256-pB9Rh+A7GlxnYuka2mTSBoxpoyYCzoaMPVgsHDlpos0="; }; + postPatch = '' + substituteInPlace tox.ini \ + --replace-fail "--cov=wheel_inspect --no-cov-on-fail" "" + ''; + + pythonRelaxDeps = [ + "entry-points-txt" + "headerparser" + ]; + + nativeBuildInputs = [ + hatchling + pythonRelaxDepsHook + ]; + propagatedBuildInputs = [ attrs entry-points-txt @@ -40,13 +57,6 @@ buildPythonPackage rec { 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" ]; @@ -59,6 +69,7 @@ buildPythonPackage rec { meta = with lib; { description = "Extract information from wheels"; homepage = "https://github.com/jwodder/wheel-inspect"; + changelog = "https://github.com/wheelodex/wheel-inspect/releases/tag/v${version}"; license = with licenses; [ mit ]; maintainers = with maintainers; [ ayazhafiz ]; }; |