diff --git a/pkgs/development/python-modules/svg-path/default.nix b/pkgs/development/python-modules/svg-path/default.nix new file mode 100644 index 000000000000..04031fcbc100 --- /dev/null +++ b/pkgs/development/python-modules/svg-path/default.nix @@ -0,0 +1,17 @@ +{ stdenv, buildPythonPackage, fetchPypi }: +buildPythonPackage rec { + pname = "svg.path"; + version = "2.2"; + + src = fetchPypi { + inherit pname version; + sha256 = "08kp03i4yiqdkz7a7l7d7kzszahmhigrml2502zi1ybndrh7ayxw"; + }; + + meta = with stdenv.lib; { + description = "SVG path objects and parser"; + homepage = https://github.com/regebro/svg.path; + license = licenses.mit; + maintainers = with maintainers; [ goibhniu ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 917f1c9e30ad..5c49b6bc0c8d 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -6348,22 +6348,7 @@ in { }; - svg-path = buildPythonPackage rec { - name = "svg.path-${version}"; - version = "2.0b1"; - - src = pkgs.fetchurl { - url = "mirror://pypi/s/svg.path/${name}.zip"; - sha256 = "038x4wqkbvcs71x6n6kzr4kn99csyv8v4gqzssr8pqylqpxi56bm"; - }; - - meta = { - description = "SVG path objects and parser"; - homepage = https://github.com/regebro/svg.path; - license = licenses.cc0; - maintainers = with maintainers; [ goibhniu ]; - }; - }; + svg-path = callPackage ../development/python-modules/svg-path { }; regex = callPackage ../development/python-modules/regex { };