Unverified Commit 89d22ccb authored by Gaétan Lepage's avatar Gaétan Lepage Committed by GitHub
Browse files

pixel2svg: fix build, modernise, move to by-name (#487923)

parents 96c6d34c 06aed2f0
Loading
Loading
Loading
Loading
+34 −0
Original line number Diff line number Diff line
{
  lib,
  buildPythonPackage,
  python3Packages,
  fetchurl,
  pillow,
  svgwrite,
  versionCheckHook,
}:

buildPythonPackage rec {
python3Packages.buildPythonApplication (finalAttrs: {
  pname = "pixel2svg";
  version = "0.3.0";
  format = "setuptools";
  pyproject = true;

  src = fetchurl {
    url = "https://static.florian-berger.de/pixel2svg-${version}.zip";
    sha256 = "sha256-aqcTTmZKcdRdVd8GGz5cuaQ4gjPapVJNtiiZu22TZgQ=";
    url = "https://static.florian-berger.de/pixel2svg-${finalAttrs.version}.zip";
    hash = "sha256-aqcTTmZKcdRdVd8GGz5cuaQ4gjPapVJNtiiZu22TZgQ=";
  };

  propagatedBuildInputs = [
  build-system = with python3Packages; [ setuptools ];

  dependencies = with python3Packages; [
    pillow
    svgwrite
  ];

  nativeCheckInputs = [ versionCheckHook ];

  meta = {
    homepage = "https://florian-berger.de/en/software/pixel2svg/";
    description = "Converts pixel art to SVG - pixel by pixel";
@@ -28,4 +31,4 @@ buildPythonPackage rec {
    maintainers = with lib.maintainers; [ annaaurora ];
    mainProgram = "pixel2svg.py";
  };
}
})
+0 −2
Original line number Diff line number Diff line
@@ -10089,8 +10089,6 @@ with pkgs;

  pinboard-notes-backup = haskell.lib.compose.justStaticExecutables haskellPackages.pinboard-notes-backup;

  pixel2svg = python310Packages.callPackage ../tools/graphics/pixel2svg { };

  inherit (callPackage ../applications/virtualization/singularity/packages.nix { })
    apptainer
    singularity