mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-06-05 21:03:40 +00:00
42 lines
981 B
Nix
42 lines
981 B
Nix
{
|
|
stdenv,
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
flit-core,
|
|
pyobjc-core,
|
|
pyobjc-framework-Cocoa,
|
|
|
|
pytestCheckHook,
|
|
}:
|
|
|
|
buildPythonPackage (finalAttrs: {
|
|
pname = "utitools";
|
|
version = "0.5.0";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "RhetTbull";
|
|
repo = "utitools";
|
|
tag = "v${finalAttrs.version}";
|
|
hash = "sha256-mx9vcMCeDTJyWJKm0Ci9IEAPCNfx9NvPGC8cuNYnH1M=";
|
|
};
|
|
|
|
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/utitools/blob/${finalAttrs.src.tag}/CHANGELOG.md";
|
|
license = lib.licenses.mit;
|
|
maintainers = with lib.maintainers; [ sigmanificient ];
|
|
};
|
|
})
|