diff options
author | Alyssa Ross <hi@alyssa.is> | 2024-02-26 16:20:28 +0100 |
---|---|---|
committer | Alyssa Ross <hi@alyssa.is> | 2024-02-26 16:20:28 +0100 |
commit | 647438344bfc1f77791391e2b4f98eef865c63dc (patch) | |
tree | ef580867fc6cc413940e4330d939cf1afda082cb /nixpkgs/pkgs/development/python-modules/wheel-inspect/default.nix | |
parent | b084c6a0fab7f32c904c5c8e8db8dddcefbe507f (diff) | |
parent | e3474e1d1e53b70e2b2af73ea26d6340e82f6b8b (diff) | |
download | nixlib-647438344bfc1f77791391e2b4f98eef865c63dc.tar nixlib-647438344bfc1f77791391e2b4f98eef865c63dc.tar.gz nixlib-647438344bfc1f77791391e2b4f98eef865c63dc.tar.bz2 nixlib-647438344bfc1f77791391e2b4f98eef865c63dc.tar.lz nixlib-647438344bfc1f77791391e2b4f98eef865c63dc.tar.xz nixlib-647438344bfc1f77791391e2b4f98eef865c63dc.tar.zst nixlib-647438344bfc1f77791391e2b4f98eef865c63dc.zip |
Merge commit 'e3474e1d1e53'
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 ]; }; |