diff --git a/pkgs/development/python-modules/svgwrite/default.nix b/pkgs/development/python-modules/svgwrite/default.nix index 7af7a16e7fa7..186bf0a1ce2b 100644 --- a/pkgs/development/python-modules/svgwrite/default.nix +++ b/pkgs/development/python-modules/svgwrite/default.nix @@ -1,7 +1,6 @@ -{ stdenv +{ lib , buildPythonPackage -, fetchPypi -, setuptools +, fetchFromGitHub , pyparsing , pytest }: @@ -10,21 +9,27 @@ buildPythonPackage rec { pname = "svgwrite"; version = "1.3.1"; - src = fetchPypi { - inherit pname version; - extension = "zip"; - sha256 = "11e47749b159ed7004721e11d380b4642a26154b8cb2f7b0102fea9c71a3dfa1"; + src = fetchFromGitHub { + owner = "mozman"; + repo = "svgwrite"; + rev = "v${version}"; + sha256 = "14wz0y118a5wwfzin6cirr9254p4y825lnrnackihdbpw22gcw11"; }; - buildInputs = [ setuptools ]; - propagatedBuildInputs = [ pyparsing ]; - checkInputs = [ pytest ]; + propagatedBuildInputs = [ + pyparsing + ]; - checkPhase = '' + checkInputs = [ pytest + ]; + + # embed_google_web_font test tried to pull font from internet + checkPhase = '' + pytest -k "not test_embed_google_web_font" ''; - meta = with stdenv.lib; { + meta = with lib; { description = "A Python library to create SVG drawings"; homepage = https://github.com/mozman/svgwrite; license = licenses.mit;