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
commit a40689cce9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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