Merge pull request #283771 from natsukium/oterm/fix

oterm: 0.1.18 -> 0.1.21; fix build; python311Packages.rich-pixels: fix version string
This commit is contained in:
OTABI Tomoya 2024-01-28 16:49:41 +09:00 committed by GitHub
commit e3b9f3a12d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 27 additions and 3 deletions

View File

@ -5,14 +5,19 @@
python3Packages.buildPythonApplication rec {
pname = "oterm";
version = "0.1.18";
version = "0.1.21";
pyproject = true;
src = fetchFromGitHub {
owner = "ggozad";
repo = "oterm";
rev = "refs/tags/${version}";
hash = "sha256-hog0oEiZMxM3lM3xFZ+c15OTOwGXZ97FmG4PpyA94Ys=";
hash = "sha256-S6v7VDIGPu6UDbDe0H3LWF6IN0Z6ENmiCDxz+GuCibI=";
};
pythonRelaxDeps = [
"pillow"
];
propagatedBuildInputs = with python3Packages; [
textual
typer
@ -23,8 +28,18 @@ python3Packages.buildPythonApplication rec {
pyperclip
packaging
rich-pixels
pillow
aiohttp
];
nativeBuildInputs = with python3Packages; [
poetry-core
pythonRelaxDepsHook
];
pythonImportsCheck = [
"oterm"
];
nativeBuildInputs = with python3Packages; [ poetry-core ];
# Tests require a HTTP connection to ollama
doCheck = false;

View File

@ -1,6 +1,7 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, fetchpatch
, poetry-core
, pytestCheckHook
, syrupy
@ -21,6 +22,14 @@ buildPythonPackage rec {
hash = "sha256-fbpnHEfBPWLSYhgETqKbdmmzt7Lu/4oKgetjgNvv04c=";
};
patches = [
(fetchpatch {
name = "fix-version.patch";
url = "https://github.com/darrenburns/rich-pixels/commit/ff1cc3fef789321831f29e9bf282ae6b337eddb2.patch";
hash = "sha256-58ZHBNg1RCuOfuE034qF1SbAgoiWMNlSG3c5pCSLUyI=";
})
];
nativeBuildInputs = [
poetry-core
pythonRelaxDepsHook