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:
figsoda 2023-06-13 09:44:17 -04:00
parent e67120f1d3
commit c8d505c314

View File

@ -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?;