mirror of
https://github.com/vale981/poetry2nix
synced 2025-03-04 16:51:40 -05:00
Fix platform_python_implementation field
This commit is contained in:
parent
145fc6ce83
commit
82166c8a49
1 changed files with 8 additions and 4 deletions
12
pep508.nix
12
pep508.nix
|
@ -93,10 +93,14 @@ let
|
|||
else throw "Unsupported platform"
|
||||
);
|
||||
platform_machine = stdenv.platform.kernelArch;
|
||||
platform_python_implementation = {
|
||||
cpython = "CPython";
|
||||
pypy = "PyPy";
|
||||
}."${python.passthru.implementation}" or throw "Unsupported implementation ${python.passthru.implementation}";
|
||||
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}"
|
||||
);
|
||||
platform_release = ""; # Field not reproducible
|
||||
platform_system = (
|
||||
if stdenv.isLinux then "Linux"
|
||||
|
|
Loading…
Add table
Reference in a new issue