mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-09-29 16:57:40 +03:00
Merge pull request #271611 from pbsds/fix-pyunpack-1701504628
python3Packages.pyunpack: fix build
This commit is contained in:
commit
a40689cce9
@ -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" ];
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user