mirror of
https://github.com/SebastianWendel/nixpkgs.git
synced 2024-11-05 17:56:46 +01:00
2b239b5b30
Fixes the following ImportError on application startup: /nix/store/qh7ndfsar3icmwqbiwcla7pc8x1133vg-python2.7-Markdown-3.1.1/bin/markdown_py README.md > README.html.new Traceback (most recent call last): File "/nix/store/qh7ndfsar3icmwqbiwcla7pc8x1133vg-python2.7-Markdown-3.1.1/bin/.markdown_py-wrapped", line 7, in <module> from markdown.__main__ import run File "/nix/store/qh7ndfsar3icmwqbiwcla7pc8x1133vg-python2.7-Markdown-3.1.1/lib/python2.7/site-packages/markdown/__init__.py", line 25, in <module> from .core import Markdown, markdown, markdownFromFile File "/nix/store/qh7ndfsar3icmwqbiwcla7pc8x1133vg-python2.7-Markdown-3.1.1/lib/python2.7/site-packages/markdown/core.py", line 29, in <module> import pkg_resources ImportError: No module named pkg_resources make: *** [Makefile:53: README.html] Error 1
28 lines
559 B
Nix
28 lines
559 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, setuptools
|
|
, nose
|
|
, pyyaml
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "Markdown";
|
|
version = "3.1.1";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "2e50876bcdd74517e7b71f3e7a76102050edec255b3983403f1a63e7c8a41e7a";
|
|
};
|
|
|
|
propagatedBuildInputs = [ setuptools ];
|
|
|
|
checkInputs = [ nose pyyaml ];
|
|
|
|
meta = {
|
|
description = "A Python implementation of John Gruber's Markdown with Extension support";
|
|
homepage = "https://github.com/Python-Markdown/markdown";
|
|
license = lib.licenses.bsd3;
|
|
};
|
|
}
|