Commit f3dbef37 authored by Gaetan Lepage's avatar Gaetan Lepage
Browse files

python312Packages.collidoscope: cleanup, fix tests in the darwin sandbox

parent a856c2a0
Loading
Loading
Loading
Loading
+19 −9
Original line number Diff line number Diff line
{
  lib,
  buildPythonPackage,
  fetchPypi,
  fetchFromGitHub,
  setuptools,
  babelfont,
  kurbopy,
  fonttools,
@@ -9,19 +10,26 @@
  tqdm,
  uharfbuzz,
  unittestCheckHook,
  pytestCheckHook,
}:

buildPythonPackage rec {
  pname = "collidoscope";
  version = "0.6.5";
  format = "setuptools";
  pyproject = true;

  src = fetchPypi {
    inherit pname version;
    hash = "sha256-D7MzJ8FZjA/NSXCqCJQ9a02FPPi3t4W0q65wRIDcfSA=";
  src = fetchFromGitHub {
    owner = "googlefonts";
    repo = "collidoscope";
    tag = "v${version}";
    hash = "sha256-1tKbv+i2gbUFJa94xSEj5BrEpZ0+ULgglkYvGMP4NXw=";
  };

  propagatedBuildInputs = [
  build-system = [
    setuptools
  ];

  dependencies = [
    babelfont
    kurbopy
    fonttools
@@ -37,10 +45,12 @@ buildPythonPackage rec {
    "-v"
  ];

  meta = with lib; {
  __darwinAllowLocalNetworking = true;

  meta = {
    description = "Python library to detect glyph collisions in fonts";
    homepage = "https://github.com/googlefonts/collidoscope";
    license = licenses.mit;
    maintainers = with maintainers; [ danc86 ];
    license = lib.licenses.mit;
    maintainers = with lib.maintainers; [ danc86 ];
  };
}