diff --git a/pkgs/development/python-modules/cairosvg/default.nix b/pkgs/development/python-modules/cairosvg/default.nix index 0d110721fd12..0d0b26eb474c 100644 --- a/pkgs/development/python-modules/cairosvg/default.nix +++ b/pkgs/development/python-modules/cairosvg/default.nix @@ -1,15 +1,21 @@ -{ stdenv, buildPythonPackage, fetchPypi, cairocffi }: +{ stdenv, buildPythonPackage, fetchPypi, isPy3k +, cairocffi, cssselect2, defusedxml, pillow, tinycss2 +, pytestrunner, pytestcov, pytest-flake8, pytest-isort }: buildPythonPackage rec { - pname = "cairosvg"; - version = "2.1.3"; + pname = "CairoSVG"; + version = "2.1.2"; + + disabled = !isPy3k; src = fetchPypi { inherit pname version; - sha256 = "0b334f4ec436d78ecbc934c652f961a73a27d770f1133082cac265afab3dd64a"; + sha256 = "70f32d0a7aec46629975d584f43093f59022a47dde403c52b095dcea10cf5b80"; }; - propagatedBuildInputs = [ cairocffi ]; + propagatedBuildInputs = [ cairocffi cssselect2 defusedxml pillow tinycss2 ]; + + checkInputs = [ pytestrunner pytestcov pytest-flake8 pytest-isort ]; meta = with stdenv.lib; { homepage = https://cairosvg.org;