python3Packages.dotnetcore2: 2.1.13 -> 2.1.14

This commit is contained in:
Jonathan Ringer 2020-05-12 12:04:04 -07:00 committed by Jon
parent 409639671d
commit 59c9713715

View File

@ -7,7 +7,7 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "dotnetcore2"; pname = "dotnetcore2";
version = "2.1.13"; version = "2.1.14";
format = "wheel"; format = "wheel";
disabled = isPy27; disabled = isPy27;
@ -15,7 +15,7 @@ buildPythonPackage rec {
inherit pname version format; inherit pname version format;
python = "py3"; python = "py3";
platform = "manylinux1_x86_64"; platform = "manylinux1_x86_64";
sha256 = "1fbg3pn7g0a6pg0gb5vaapcc3cdp6wfnliim57fn3cnzmx5d8p6i"; sha256 = "0dxp9a73ncjylc09bjwq81fgj5ysk1yi27l8ka5f98121k1kmn6q";
}; };
nativeBuildInputs = [ unzip ]; nativeBuildInputs = [ unzip ];
@ -35,14 +35,18 @@ buildPythonPackage rec {
) )
]; ];
# prevent exposing a broken dotnet executable # remove bin, which has a broken dotnetcore installation
postInstall = '' installPhase = ''
rm -r $out/${python.sitePackages}/${pname}/bin rm -rf dotnetcore2/bin
mkdir -p $out/${python.sitePackages}/
cp -r dotnetcore2 $out/${python.sitePackages}/
''; '';
# no tests, ensure it's one useful function works # no tests, ensure it's one useful function works
checkPhase = '' checkPhase = ''
${python.interpreter} -c 'from dotnetcore2 import runtime; print(runtime.get_runtime_path())' rm -r dotnetcore2 # avoid importing local directory
export PYTHONPATH=$out/${python.sitePackages}:$PYTHONPATH
${python.interpreter} -c 'from dotnetcore2 import runtime; print(runtime.get_runtime_path()); runtime.ensure_dependencies()'
''; '';
meta = with lib; { meta = with lib; {