Commit fb143d90 authored by Sigmanificient's avatar Sigmanificient
Browse files

python313Packages.utitools: init at 0.4.0

parent b4413a7e
Loading
Loading
Loading
Loading
+41 −0
Original line number Diff line number Diff line
{
  stdenv,
  lib,
  buildPythonPackage,
  fetchFromGitHub,
  flit-core,
  pyobjc-core,
  pyobjc-framework-Cocoa,

  pytestCheckHook,
}:

buildPythonPackage rec {
  pname = "utitools";
  version = "0.4.0";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "RhetTbull";
    repo = "utitools";
    tag = "v${version}";
    hash = "sha256-oI+a+sc9+qi7aFP0dLINAQekib/9pZm10A5jhVIHWvo=";
  };

  build-system = [ flit-core ];
  dependencies = lib.optionals stdenv.hostPlatform.isDarwin [
    pyobjc-core
    pyobjc-framework-Cocoa
  ];

  pythonImportsCheck = [ "utitools" ];
  nativeCheckInputs = [ pytestCheckHook ];

  meta = {
    description = "Utilities for working with Uniform Type Identifiers";
    homepage = "https://github.com/RhetTbull/utitools";
    changelog = "https://github.com/RhetTbull/osxphotos/blob/${src.tag}/CHANGELOG.md";
    license = lib.licenses.mit;
    maintainers = with lib.maintainers; [ sigmanificient ];
  };
}
+2 −0
Original line number Diff line number Diff line
@@ -19555,6 +19555,8 @@ self: super: with self; {
  utils = callPackage ../development/python-modules/utils { };
  utitools = callPackage ../development/python-modules/utitools { };
  uuid6 = callPackage ../development/python-modules/uuid6 { };
  uv = callPackage ../development/python-modules/uv { inherit (pkgs) uv; };