Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
1.2 kB · 50 lines
Nix
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051{ beautifulsoup4, buildPythonPackage, fetchFromGitHub, html5lib, lib, lxml, python,}:
buildPythonPackage rec { pname = "draftjs-exporter"; version = "5.1.0"; format = "setuptools";
src = fetchFromGitHub { repo = "draftjs_exporter"; owner = "springload"; tag = "v${version}"; sha256 = "sha256-AR8CK75UdtEThE68WSE6DFSqryI509GTW1fBl1SL29w="; };
optional-dependencies = { lxml = [ lxml ]; html5lib = [ beautifulsoup4 html5lib ]; };
checkInputs = optional-dependencies.lxml ++ optional-dependencies.html5lib;
checkPhase = '' # 2 tests in this file randomly fail because they depend on the order of # HTML attributes rm tests/test_exports.py
${python.interpreter} -m unittest discover '';
pythonImportsCheck = [ "draftjs_exporter" ];
meta = with lib; { description = "Library to convert Draft.js ContentState to HTML"; homepage = "https://github.com/springload/draftjs_exporter"; changelog = "https://github.com/springload/draftjs_exporter/blob/${src.tag}/CHANGELOG.md"; license = licenses.mit; maintainers = with maintainers; [ sephi ]; };}