ghstack: fix package build failure after Poetry to uv migration
Signed-off-by: William Phetsinorath <william.phetsinorath@shikanime.studio> Change-Id: Id68e4d607dbc2c9e3528b563dd1906236a6a6964
This commit is contained in:
@@ -4,7 +4,7 @@
|
||||
fetchFromGitHub,
|
||||
}:
|
||||
|
||||
python3.pkgs.buildPythonApplication {
|
||||
python3.pkgs.buildPythonApplication rec {
|
||||
pname = "ghstack";
|
||||
version = "0.12.0";
|
||||
pyproject = true;
|
||||
@@ -12,11 +12,16 @@ python3.pkgs.buildPythonApplication {
|
||||
src = fetchFromGitHub {
|
||||
owner = "ezyang";
|
||||
repo = "ghstack";
|
||||
rev = "fa7e7023d798aad6b115b88c5ad67ce88a4fc2a6";
|
||||
hash = "sha256-Ywwjeupa8eE/vkrbl5SIbvQs53xaLnq9ieWRFwzmuuc=";
|
||||
tag = version;
|
||||
hash = "sha256-pLKwDezkwGrqYgP4WnIl5nAam6bMNO6BK+xbxhp7Aq8=";
|
||||
};
|
||||
|
||||
build-system = [ python3.pkgs.poetry-core ];
|
||||
postPatch = ''
|
||||
substituteInPlace pyproject.toml \
|
||||
--replace-fail 'requires = ["uv_build>=0.6,<0.7"]' 'requires = ["uv_build>=0.6"]'
|
||||
'';
|
||||
|
||||
build-system = [ python3.pkgs.uv-build ];
|
||||
|
||||
dependencies = with python3.pkgs; [
|
||||
aiohttp
|
||||
@@ -27,7 +32,7 @@ python3.pkgs.buildPythonApplication {
|
||||
typing-extensions
|
||||
];
|
||||
|
||||
pythonImportsCheck = [ "ghstack" ];
|
||||
pythonImportsCheck = [ "ghstack.cli" ];
|
||||
|
||||
meta = {
|
||||
description = "Submit stacked diffs to GitHub on the command line";
|
||||
|
||||
Reference in New Issue
Block a user