pep508: Fix platform_python_implementation for pypy

This commit is contained in:
adisbladis 2020-01-21 14:56:37 +00:00
parent 3ade93a0e1
commit f1af96e2c5
No known key found for this signature in database
GPG key ID: 110BFAD44C6249B7

View file

@ -93,7 +93,10 @@ let
else throw "Unsupported platform"
);
platform_machine = stdenv.platform.kernelArch;
platform_python_implementation = "CPython"; # Only CPython supported for now
platform_python_implementation = {
cpython = "CPython";
pypy = "PyPy";
}."${python.passthru.implementation}" or throw "Unsupported implementation ${python.passthru.implementation}";
platform_release = ""; # Field not reproducible
platform_system = (
if stdenv.isLinux then "Linux"