Commit 67faa9a7 authored by Sigmanificient's avatar Sigmanificient
Browse files

python3Packages.freeze-core: init at 0.6.1

parent 2b5995c9
Loading
Loading
Loading
Loading
+62 −0
Original line number Diff line number Diff line
{
  lib,
  buildPythonPackage,
  fetchFromGitHub,

  # build-system
  setuptools,

  # dependencies
  cx-logging,
  distutils,
  filelock,

  # tests
  pytest-mock,
  pytestCheckHook,
  versionCheckHook,
  writableTmpDirAsHomeHook,
}:

buildPythonPackage (finalAttrs: {
  pname = "freeze-core";
  version = "0.6.1";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "marcelotduarte";
    repo = "freeze-core";
    tag = finalAttrs.version;
    hash = "sha256-88AODiBvIPq51l1rU+mshGknQk+3qoiR7I5mfNfNv50=";
  };

  postPatch = ''
    substituteInPlace pyproject.toml \
      --replace-fail "setuptools~=82.0" "setuptools"
  '';

  build-system = [
    setuptools
    cx-logging
  ];

  dependencies = [
    distutils # needed to compile
    filelock
  ];

  pythonImportsCheck = [
    "freeze_core"
  ];

  nativeCheckInputs = [
    pytestCheckHook
  ];

  meta = {
    description = "Core dependency for cx_Freeze";
    changelog = "https://github.com/marcelotduarte/freeze-core/releases/tag/${finalAttrs.src.tag}";
    license = lib.licenses.mit;
    maintainers = with lib.maintainers; [ sigmanificient ];
  };
})
+2 −0
Original line number Diff line number Diff line
@@ -5904,6 +5904,8 @@ self: super: with self; {
  freetype-py = callPackage ../development/python-modules/freetype-py { };
  freeze-core = callPackage ../development/python-modules/freeze-core { };
  freezegun = callPackage ../development/python-modules/freezegun { };
  frelatage = callPackage ../development/python-modules/frelatage { };