depot/third_party/nixpkgs/pkgs/development/python-modules/prosemirror/default.nix

41 lines
749 B
Nix
Raw Normal View History

{
lib,
buildPythonPackage,
setuptools-scm,
pytestCheckHook,
fetchPypi,
lxml,
cssselect,
}:
buildPythonPackage rec {
pname = "prosemirror";
version = "0.5.0";
pyproject = true;
src = fetchPypi {
inherit pname version;
hash = "sha256-AwhPJHPDuuQW7NlUs7KL0SLTAH9F+E8RzRbsRnHraiI=";
};
build-system = [ setuptools-scm ];
dependencies = [
lxml
cssselect
];
pythonImportsCheck = [ "prosemirror" ];
nativeCheckInputs = [
pytestCheckHook
];
meta = {
description = "Python implementation of core ProseMirror modules for collaborative editing";
homepage = "https://pypi.org/project/prosemirror";
license = lib.licenses.bsd3;
maintainers = with lib.maintainers; [ onny ];
};
}