diff --git a/pkgs/by-name/gh/ghstack/package.nix b/pkgs/by-name/gh/ghstack/package.nix index 179b74c1d7a8..4b35fb78c404 100644 --- a/pkgs/by-name/gh/ghstack/package.nix +++ b/pkgs/by-name/gh/ghstack/package.nix @@ -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,13 +32,16 @@ python3.pkgs.buildPythonApplication { typing-extensions ]; - pythonImportsCheck = [ "ghstack" ]; + pythonImportsCheck = [ "ghstack.cli" ]; meta = { description = "Submit stacked diffs to GitHub on the command line"; homepage = "https://github.com/ezyang/ghstack"; license = lib.licenses.mit; - maintainers = with lib.maintainers; [ munksgaard ]; + maintainers = with lib.maintainers; [ + munksgaard + shikanime + ]; mainProgram = "ghstack"; }; }