summary refs log tree commit diff
path: root/pkgs
diff options
context:
space:
mode:
authorJonathan Ringer <jonringer117@gmail.com>2020-05-12 12:04:04 -0700
committerJon <jonringer@users.noreply.github.com>2020-05-12 13:12:14 -0700
commit59c9713715645c016d5d733b9c0d0714e35326fa (patch)
tree4c3fe4cac7b355bfd9e074b0b08bd20a4ec9126a /pkgs
parent409639671d37f32bdcc39f22ff7320a9c18d3bf5 (diff)
downloadnixpkgs-59c9713715645c016d5d733b9c0d0714e35326fa.tar
nixpkgs-59c9713715645c016d5d733b9c0d0714e35326fa.tar.gz
nixpkgs-59c9713715645c016d5d733b9c0d0714e35326fa.tar.bz2
nixpkgs-59c9713715645c016d5d733b9c0d0714e35326fa.tar.lz
nixpkgs-59c9713715645c016d5d733b9c0d0714e35326fa.tar.xz
nixpkgs-59c9713715645c016d5d733b9c0d0714e35326fa.tar.zst
nixpkgs-59c9713715645c016d5d733b9c0d0714e35326fa.zip
python3Packages.dotnetcore2: 2.1.13 -> 2.1.14
Diffstat (limited to 'pkgs')
-rw-r--r--pkgs/development/python-modules/dotnetcore2/default.nix16
1 files changed, 10 insertions, 6 deletions
diff --git a/pkgs/development/python-modules/dotnetcore2/default.nix b/pkgs/development/python-modules/dotnetcore2/default.nix
index eeb962a845f..7cc069707aa 100644
--- a/pkgs/development/python-modules/dotnetcore2/default.nix
+++ b/pkgs/development/python-modules/dotnetcore2/default.nix
@@ -7,7 +7,7 @@
 
 buildPythonPackage rec {
   pname = "dotnetcore2";
-  version = "2.1.13";
+  version = "2.1.14";
   format = "wheel";
   disabled = isPy27;
 
@@ -15,7 +15,7 @@ buildPythonPackage rec {
     inherit pname version format;
     python = "py3";
     platform = "manylinux1_x86_64";
-    sha256 = "1fbg3pn7g0a6pg0gb5vaapcc3cdp6wfnliim57fn3cnzmx5d8p6i";
+    sha256 = "0dxp9a73ncjylc09bjwq81fgj5ysk1yi27l8ka5f98121k1kmn6q";
   };
 
   nativeBuildInputs = [ unzip ];
@@ -35,14 +35,18 @@ buildPythonPackage rec {
     )
   ];
 
-  # prevent exposing a broken dotnet executable
-  postInstall = ''
-    rm -r $out/${python.sitePackages}/${pname}/bin
+  # remove bin, which has a broken dotnetcore installation
+  installPhase = ''
+    rm -rf dotnetcore2/bin
+    mkdir -p $out/${python.sitePackages}/
+    cp -r dotnetcore2 $out/${python.sitePackages}/
   '';
 
   # no tests, ensure it's one useful function works
   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; {