summary refs log tree commit diff
path: root/pkgs/applications/version-management/nbstripout
diff options
context:
space:
mode:
authorJaakko Luttinen <jaakko.luttinen@iki.fi>2019-09-07 14:43:43 +0300
committerJaakko Luttinen <jaakko.luttinen@iki.fi>2019-09-07 14:43:43 +0300
commit8b51ee3667a7492ade1ae6eff1cb193bbfa992f6 (patch)
treea8923d7ab1893abd9502a281e215a97ab8ead882 /pkgs/applications/version-management/nbstripout
parent4e60699fa727e4a0f9a3e78948012f86da32cfef (diff)
downloadnixpkgs-8b51ee3667a7492ade1ae6eff1cb193bbfa992f6.tar
nixpkgs-8b51ee3667a7492ade1ae6eff1cb193bbfa992f6.tar.gz
nixpkgs-8b51ee3667a7492ade1ae6eff1cb193bbfa992f6.tar.bz2
nixpkgs-8b51ee3667a7492ade1ae6eff1cb193bbfa992f6.tar.lz
nixpkgs-8b51ee3667a7492ade1ae6eff1cb193bbfa992f6.tar.xz
nixpkgs-8b51ee3667a7492ade1ae6eff1cb193bbfa992f6.tar.zst
nixpkgs-8b51ee3667a7492ade1ae6eff1cb193bbfa992f6.zip
nbstripout: 0.3.1 -> 0.3.6
Diffstat (limited to 'pkgs/applications/version-management/nbstripout')
-rw-r--r--pkgs/applications/version-management/nbstripout/default.nix29
1 files changed, 5 insertions, 24 deletions
diff --git a/pkgs/applications/version-management/nbstripout/default.nix b/pkgs/applications/version-management/nbstripout/default.nix
index 8b2b15a0078..b0a7108ac07 100644
--- a/pkgs/applications/version-management/nbstripout/default.nix
+++ b/pkgs/applications/version-management/nbstripout/default.nix
@@ -1,8 +1,8 @@
-{lib, python2Packages, fetchFromGitHub, fetchurl, git, mercurial, coreutils}:
+{lib, python2Packages, git, mercurial, coreutils}:
 
 with python2Packages;
 buildPythonApplication rec {
-  version = "0.3.1";
+  version = "0.3.6";
   pname = "nbstripout";
 
   # Mercurial should be added as a build input but because it's a Python
@@ -12,30 +12,11 @@ buildPythonApplication rec {
   nativeBuildInputs = [ pytestrunner ];
   propagatedBuildInputs = [ ipython nbformat ];
 
-  # PyPI source is currently missing tests. Thus, use GitHub instead.
-  # See: https://github.com/kynan/nbstripout/issues/73
-  # Use PyPI again after it has been fixed in a release.
-  src = fetchFromGitHub {
-    owner = "kynan";
-    repo = pname;
-    rev = version;
-    sha256 = "1jifqmszjzyaqzaw2ir83k5fdb04iyxdad4lclawpb42hbink9ws";
+  src = fetchPypi {
+    inherit pname version;
+    sha256 = "1x6010akw7iqxn7ba5m6malfr2fvaf0bjp3cdh983qn1s7vwlq0r";
   };
 
-  patches = [
-    (
-      # Fix git diff tests by using --no-index.
-      # See: https://github.com/kynan/nbstripout/issues/74
-      #
-      # Remove this patch once the pull request has been merged and a new
-      # release made.
-      fetchurl {
-        url = "https://github.com/jluttine/nbstripout/commit/03e28424fb788dd09a95e99814977b0d0846c0b4.patch";
-        sha256 = "09myfb77a2wh8lqqs9fcpam97vmaw8b7zbq8n5gwn6d80zbl7dn0";
-      }
-    )
-  ];
-
   # for some reason, darwin uses /bin/sh echo native instead of echo binary, so
   # force using the echo binary
   postPatch = ''