python3Packages.pyunpack: migrate to pyproject

This commit is contained in:
Peder Bergebakken Sundt 2023-12-02 09:21:19 +01:00
parent 36e22ae5d9
commit e3a3e51708

View File

@ -1,6 +1,7 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, setuptools
, pytestCheckHook
, easyprocess
, entrypoint2
@ -11,7 +12,7 @@
buildPythonPackage rec {
pname = "pyunpack";
version = "0.3";
format = "setuptools";
pyproject = true;
src = fetchFromGitHub {
owner = "ponty";
@ -24,9 +25,11 @@ buildPythonPackage rec {
substituteInPlace pyunpack/__init__.py \
--replace \
'_exepath("patool")' \
'"${patool}/bin/.patool-wrapped"'
'"${lib.getBin patool}/bin/.patool-wrapped"'
'';
nativeBuildInputs = [ setuptools ];
propagatedBuildInputs = [
easyprocess
entrypoint2