mirror of
https://github.com/nix-community/nix-init.git
synced 2024-10-26 09:00:34 +03:00
pypi: python3.pkgs.fetchPypi -> fetchPypi
closes #153 - fixes interaction with `allowAliases = false` on nixpkgs 23.11 - drops support for nixpkgs 22.11
This commit is contained in:
parent
e67120f1d3
commit
c8d505c314
@ -354,12 +354,7 @@ async fn run() -> Result<()> {
|
||||
.arg("--json")
|
||||
.arg("--expr")
|
||||
.arg(format!(
|
||||
"let pname={pname:?};version={version:?};in(import({nixpkgs}){{}}).{}{src_expr}",
|
||||
if matches!(fetcher, MaybeFetcher::Known(Fetcher::FetchPypi { .. })) {
|
||||
"python3.pkgs."
|
||||
} else {
|
||||
""
|
||||
},
|
||||
"let pname={pname:?};version={version:?};in(import({nixpkgs}){{}}).{src_expr}",
|
||||
))
|
||||
.get_stdout()
|
||||
.await?;
|
||||
|
Loading…
Reference in New Issue
Block a user