Skip to content

Commit

Permalink
vendor: Upgrade pyproject.nix
Browse files Browse the repository at this point in the history
Fixes #1609
  • Loading branch information
adisbladis committed Jul 15, 2024
1 parent 7f304a8 commit d11c01e
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions vendor/pyproject.nix/lib/pep508.nix
Original file line number Diff line number Diff line change
Expand Up @@ -491,7 +491,8 @@ fix (self:
mkEnviron = python:
let
inherit (python) stdenv;
targetMachine = pep599.manyLinuxTargetMachines.${stdenv.targetPlatform.parsed.cpu.name} or null;
inherit (stdenv) targetPlatform;
impl = python.passthru.implementation;
in
mapAttrs
parseValueVersionDynamic
Expand All @@ -503,11 +504,10 @@ fix (self:
if stdenv.isLinux then "linux"
else if stdenv.isDarwin then "darwin"
else throw "Unsupported platform";
platform_machine = targetMachine;
platform_machine =
if targetPlatform.isDarwin then targetPlatform.darwinArch
else pep599.manyLinuxTargetMachines.${targetPlatform.parsed.cpu.name} or targetPlatform.parsed.cpu.name;
platform_python_implementation =
let
impl = python.passthru.implementation;
in
if impl == "cpython" then "CPython"
else if impl == "pypy" then "PyPy"
else throw "Unsupported implementation ${impl}";
Expand Down

0 comments on commit d11c01e

Please sign in to comment.