10 buildPythonPackage rec {
11 pname = "draftjs-exporter";
13 format = "setuptools";
15 src = fetchFromGitHub {
16 repo = "draftjs_exporter";
18 rev = "refs/tags/v${version}";
19 sha256 = "sha256-4MmCVRx350p6N9XqTZSo8ROI/OJ0s4aKSYH9+Oxgvf4=";
22 passthru.optional-dependencies = {
24 html5lib = [ beautifulsoup4 html5lib ];
27 checkInputs = passthru.optional-dependencies.lxml ++ passthru.optional-dependencies.html5lib;
30 # 2 tests in this file randomly fail because they depend on the order of
32 rm tests/test_exports.py
34 ${python.interpreter} -m unittest discover
37 pythonImportsCheck = [ "draftjs_exporter" ];
40 description = "Library to convert Draft.js ContentState to HTML";
41 homepage = "https://github.com/springload/draftjs_exporter";
42 changelog = "https://github.com/springload/draftjs_exporter/blob/v${version}/CHANGELOG.md";
43 license = licenses.mit;
44 maintainers = with maintainers; [ sephi ];