11 buildPythonPackage rec {
12 pname = "draftjs-exporter";
14 format = "setuptools";
16 src = fetchFromGitHub {
17 repo = "draftjs_exporter";
19 rev = "refs/tags/v${version}";
20 sha256 = "sha256-4MmCVRx350p6N9XqTZSo8ROI/OJ0s4aKSYH9+Oxgvf4=";
23 optional-dependencies = {
31 checkInputs = optional-dependencies.lxml ++ optional-dependencies.html5lib;
34 # 2 tests in this file randomly fail because they depend on the order of
36 rm tests/test_exports.py
38 ${python.interpreter} -m unittest discover
41 pythonImportsCheck = [ "draftjs_exporter" ];
44 description = "Library to convert Draft.js ContentState to HTML";
45 homepage = "https://github.com/springload/draftjs_exporter";
46 changelog = "https://github.com/springload/draftjs_exporter/blob/v${version}/CHANGELOG.md";
47 license = licenses.mit;
48 maintainers = with maintainers; [ sephi ];