%define pypi_name svgwrite
Summary: Python 2 library to create SVG drawings
Name: python-%{pypi_name}
-Version: 1.1.11
-Release: 3
+Version: 1.3.1
+Release: 1
License: MIT
Group: Libraries/Python
-Source0: https://pypi.python.org/packages/69/a5/c5edc66eb5bd9259589b3a379c8aac4084a92cad48fc688b07c1108da272/svgwrite-%{version}.zip
-#Source0: https://files.pythonhosted.org/packages/source/s/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
-# Source0-md5: 106f937fdaafd05945631099d0db27f2
-URL: https://bitbucket.org/mozman/svgwrite
+Source0: https://github.com/mozman/svgwrite/archive/v%{version}/%{module}-%{version}.tar.gz
+# Source0-md5: a3d9311578538ba5acd6bb98d14cae38
+URL: https://github.com/mozman/svgwrite
BuildRequires: rpm-pythonprov
BuildRequires: rpmbuild(macros) >= 1.714
BuildArch: noarch
%prep
%setup -q -n %{pypi_name}-%{version}
+# test is hosed and fails on the order of attr in a tag
+%{__rm} tests/test_pretty_xml.py
+
%build
%py3_build
%py_build