From 541954ac76fcde8b12af05b36709617d1c75d549 Mon Sep 17 00:00:00 2001 From: Gaetan Lepage Date: Tue, 19 Sep 2023 14:34:01 +0200 Subject: [PATCH] python310Packages.svgelements: init at 1.9.6 --- .../python-modules/svgelements/default.nix | 50 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 + 2 files changed, 52 insertions(+) create mode 100644 pkgs/development/python-modules/svgelements/default.nix diff --git a/pkgs/development/python-modules/svgelements/default.nix b/pkgs/development/python-modules/svgelements/default.nix new file mode 100644 index 000000000000..22a7e2c5b1ad --- /dev/null +++ b/pkgs/development/python-modules/svgelements/default.nix @@ -0,0 +1,50 @@ +{ lib +, buildPythonPackage +, fetchFromGitHub +, setuptools +, wheel +, anyio +, numpy +, pillow +, pytest-forked +, pytest-xdist +, pytestCheckHook +, scipy +}: + +buildPythonPackage rec { + pname = "svgelements"; + version = "1.9.6"; + pyproject = true; + + src = fetchFromGitHub { + owner = "meerk40t"; + repo = "svgelements"; + rev = "refs/tags/${version}"; + hash = "sha256-nx2sGXeeh8S17TfRDFifQbdSxc4YGsDNnrPSSbxv7S4="; + }; + + nativeBuildInputs = [ + setuptools + wheel + ]; + + pythonImportsCheck = [ "svgelements" ]; + + nativeCheckInputs = [ + anyio + numpy + pillow + pytest-forked + pytest-xdist + pytestCheckHook + scipy + ]; + + meta = with lib; { + description = "SVG Parsing for Elements, Paths, and other SVG Objects"; + homepage = "https://github.com/meerk40t/svgelements"; + license = licenses.mit; + maintainers = with maintainers; [ GaetanLepage ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 52f58a04875c..8bf82ba54215 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -12577,6 +12577,8 @@ self: super: with self; { svg-path = callPackage ../development/python-modules/svg-path { }; + svgelements = callPackage ../development/python-modules/svgelements { }; + svgwrite = callPackage ../development/python-modules/svgwrite { }; sv-ttk = callPackage ../development/python-modules/sv-ttk { };