mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-03-14 08:26:37 +01:00
This commit was automatically generated using update-python-libraries. Co-authored-by: Michael Daniels <mdaniels5757@gmail.com>
44 lines
1.2 KiB
Nix
44 lines
1.2 KiB
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchPypi,
|
|
setuptools,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "mac-alias";
|
|
version = "2.2.3";
|
|
pyproject = true;
|
|
|
|
src = fetchPypi {
|
|
pname = "mac_alias";
|
|
inherit version;
|
|
hash = "sha256-HH+jZ2h9ZpefLOTRqLJxbPHJ+4EXQcqzzzyjVlVcK+s=";
|
|
};
|
|
|
|
postPatch = ''
|
|
substituteInPlace pyproject.toml --replace-fail "setuptools==80.9.0" "setuptools"
|
|
'';
|
|
|
|
nativeBuildInputs = [ setuptools ];
|
|
|
|
# pypi package does not include tests;
|
|
# tests anyway require admin privileges to succeed
|
|
doCheck = false;
|
|
pythonImportsCheck = [ "mac_alias" ];
|
|
|
|
meta = {
|
|
homepage = "https://github.com/al45tair/mac_alias";
|
|
description = "Generate or read binary Alias and Bookmark records from Python code";
|
|
mainProgram = "mac_alias";
|
|
longDescription = ''
|
|
mac_alias lets you generate or read binary Alias and Bookmark records from Python code.
|
|
|
|
While it is written in pure Python, some OS X specific code is required
|
|
to generate a proper Alias or Bookmark record for a given file,
|
|
so this module currently is not portable to other platforms.
|
|
'';
|
|
license = lib.licenses.mit;
|
|
maintainers = with lib.maintainers; [ siriobalmelli ];
|
|
};
|
|
}
|