File tree Expand file tree Collapse file tree 1 file changed +11
-1
lines changed
pkgs/development/python-modules/debugpy Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -32,7 +32,17 @@ buildPythonPackage rec {
3232 owner = "microsoft" ;
3333 repo = "debugpy" ;
3434 tag = "v${ version } " ;
35- hash = "sha256-U9WeWAX0qDusWcMsFaI1ct4YKlGQEHUYlKZfRiYhma0=" ;
35+
36+ # Upstream uses .gitattributes to inject information about the revision
37+ # hash and the refname into `src/debugpy/_version.py`, see:
38+ #
39+ # - https://git-scm.com/docs/gitattributes#_export_subst and
40+ # - https://github.com/microsoft/debugpy/blob/v1.8.17/src/debugpy/_version.py#L24-L30
41+ postFetch = ''
42+ sed -i 's/git_refnames = "[^"]*"/git_refnames = " (tag: ${ src . tag } )"/' "$out/src/debugpy/_version.py"
43+ '' ;
44+
45+ hash = "sha256-eAiCtSJUqLASapxnYCyq1UCiGz6QmKQum7Vs3MoU1s8=" ;
3646 } ;
3747
3848 patches = [
You can’t perform that action at this time.
0 commit comments