mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-07-14 14:10:33 +03:00
python3Packages.prompt-toolkit: fix importlib.metadata.PackageNotFoundError
This commit is contained in:
parent
f471f8cb7c
commit
74d3e87b71
1 changed files with 6 additions and 0 deletions
|
@ -18,6 +18,12 @@ buildPythonPackage rec {
|
|||
hash = "sha256-kxoWLjsn/JDIbxtIux+yxSjCdhR15XycBt4TMRx7VO0=";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
# https://github.com/prompt-toolkit/python-prompt-toolkit/issues/1988
|
||||
substituteInPlace src/prompt_toolkit/__init__.py \
|
||||
--replace-fail 'metadata.version("prompt_toolkit")' '"${version}"'
|
||||
'';
|
||||
|
||||
build-system = [ setuptools ];
|
||||
|
||||
dependencies = [ wcwidth ];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue