From 9fc7188c2785e1b59f674a4a2ab09eff2d0f284a Mon Sep 17 00:00:00 2001
From: Martin Weinelt <hexa@darmstadt.ccc.de>
Date: Wed, 3 Aug 2022 11:34:11 +0200
Subject: [PATCH] python3Packages.aiogithubapi: fix version substitution

---
 pkgs/development/python-modules/aiogithubapi/default.nix | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/pkgs/development/python-modules/aiogithubapi/default.nix b/pkgs/development/python-modules/aiogithubapi/default.nix
index 03dacdef89ba..38bd95989f6a 100644
--- a/pkgs/development/python-modules/aiogithubapi/default.nix
+++ b/pkgs/development/python-modules/aiogithubapi/default.nix
@@ -45,7 +45,7 @@ buildPythonPackage rec {
     # Upstream is releasing with the help of a CI to PyPI, GitHub releases
     # are not in their focus
     substituteInPlace pyproject.toml \
-      --replace 'version="main",' 'version="${version}",'
+      --replace 'version = "0"' 'version = "${version}"'
   '';
 
   pythonImportsCheck = [