summary refs log tree commit diff
path: root/pkgs/development/python-modules
diff options
context:
space:
mode:
authorRobert Schütz <robert.schuetz@stud.uni-heidelberg.de>2019-01-14 14:46:25 +0100
committerRobert Schütz <robert.schuetz@stud.uni-heidelberg.de>2019-01-14 14:56:29 +0100
commit421b3e4bf684ff6bcd707e7eb1ab434a5ad946c3 (patch)
tree17515b5ad33a9784f544105dbf670a5b1219c4a6 /pkgs/development/python-modules
parentaca17ae8491d72a30640e1125a8650fb4929da10 (diff)
downloadnixpkgs-421b3e4bf684ff6bcd707e7eb1ab434a5ad946c3.tar
nixpkgs-421b3e4bf684ff6bcd707e7eb1ab434a5ad946c3.tar.gz
nixpkgs-421b3e4bf684ff6bcd707e7eb1ab434a5ad946c3.tar.bz2
nixpkgs-421b3e4bf684ff6bcd707e7eb1ab434a5ad946c3.tar.lz
nixpkgs-421b3e4bf684ff6bcd707e7eb1ab434a5ad946c3.tar.xz
nixpkgs-421b3e4bf684ff6bcd707e7eb1ab434a5ad946c3.tar.zst
nixpkgs-421b3e4bf684ff6bcd707e7eb1ab434a5ad946c3.zip
python.pkgs.recommonmark: 0.4.0 -> 0.5.0
Diffstat (limited to 'pkgs/development/python-modules')
-rw-r--r--pkgs/development/python-modules/recommonmark/default.nix28
1 files changed, 16 insertions, 12 deletions
diff --git a/pkgs/development/python-modules/recommonmark/default.nix b/pkgs/development/python-modules/recommonmark/default.nix
index 2078a04be06..f6965fd6cd9 100644
--- a/pkgs/development/python-modules/recommonmark/default.nix
+++ b/pkgs/development/python-modules/recommonmark/default.nix
@@ -1,26 +1,30 @@
 { lib
 , buildPythonPackage
-, fetchPypi
+, fetchFromGitHub
 , pytest
-, sphinx
-, CommonMark_54
+, CommonMark
 , docutils
+, sphinx
 }:
 
 buildPythonPackage rec {
   pname = "recommonmark";
-  version = "0.4.0";
+  version = "0.5.0";
 
-  src = fetchPypi {
-    inherit pname version;
-    sha256 = "6e29c723abcf5533842376d87c4589e62923ecb6002a8e059eb608345ddaff9d";
+  # PyPI tarball is missing some test files: https://github.com/rtfd/recommonmark/pull/128
+  src = fetchFromGitHub {
+    owner = "rtfd";
+    repo = pname;
+    rev = version;
+    sha256 = "04bjqx2hczmg7rnj2rpsjk7h24diwk83s6fhgrxk00k40w2bpz5j";
   };
 
-  checkInputs = [ pytest sphinx ];
-  propagatedBuildInputs = [ CommonMark_54 docutils ];
+  checkInputs = [ pytest ];
+  propagatedBuildInputs = [ CommonMark docutils sphinx ];
 
-  # No tests in archive
-  doCheck = false;
+  checkPhase = ''
+    py.test
+  '';
 
   meta = {
     description = "A docutils-compatibility bridge to CommonMark";
@@ -28,4 +32,4 @@ buildPythonPackage rec {
     license = lib.licenses.mit;
     maintainers = with lib.maintainers; [ fridh ];
   };
-}
\ No newline at end of file
+}