Merge pull request #271611 from pbsds/fix-pyunpack-1701504628

python3Packages.pyunpack: fix build
This commit is contained in:
Nick Cao
2023-12-03 10:15:56 -05:00
committed by GitHub

View File

@@ -1,16 +1,18 @@
{ lib { lib
, buildPythonPackage , buildPythonPackage
, fetchFromGitHub , fetchFromGitHub
, setuptools
, pytestCheckHook , pytestCheckHook
, easyprocess , easyprocess
, entrypoint2 , entrypoint2
, patool , patool
, cabextract
}: }:
buildPythonPackage rec { buildPythonPackage rec {
pname = "pyunpack"; pname = "pyunpack";
version = "0.3"; version = "0.3";
format = "setuptools"; pyproject = true;
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "ponty"; owner = "ponty";
@@ -23,15 +25,20 @@ buildPythonPackage rec {
substituteInPlace pyunpack/__init__.py \ substituteInPlace pyunpack/__init__.py \
--replace \ --replace \
'_exepath("patool")' \ '_exepath("patool")' \
'"${patool}/bin/.patool-wrapped"' '"${lib.getBin patool}/bin/.patool-wrapped"'
''; '';
nativeBuildInputs = [ setuptools ];
propagatedBuildInputs = [ propagatedBuildInputs = [
easyprocess easyprocess
entrypoint2 entrypoint2
]; ];
nativeCheckInputs = [ pytestCheckHook ]; nativeCheckInputs = [
pytestCheckHook
cabextract
];
pytestFlagsArray = [ "-x" ]; pytestFlagsArray = [ "-x" ];