Skip to content

Commit

Permalink
python312Packages.dmgbuild: init at 1.6.2 (NixOS#351577)
Browse files Browse the repository at this point in the history
  • Loading branch information
Aleksanaa authored Oct 28, 2024
2 parents a1c79e3 + 0a6a8cb commit e024bbe
Show file tree
Hide file tree
Showing 2 changed files with 58 additions and 0 deletions.
56 changes: 56 additions & 0 deletions pkgs/development/python-modules/dmgbuild/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
{
lib,
buildPythonPackage,
fetchFromGitHub,
setuptools,
ds-store,
importlib-resources,
mac-alias,
}:

buildPythonPackage rec {
pname = "dmgbuild";
version = "1.6.2";
pyproject = true;

src = fetchFromGitHub {
owner = "dmgbuild";
repo = "dmgbuild";
rev = "refs/tags/v${version}";
hash = "sha256-PozYxmXumFnptIgb4FM4b/Q5tx0MIS2bVw2kCuGucA8=";
};

postPatch = ''
# relax all deps
substituteInPlace pyproject.toml \
--replace-fail "==" ">="
'';

build-system = [
setuptools
];

dependencies = [
ds-store
importlib-resources
mac-alias
];

pythonImportsCheck = [
"dmgbuild"
];

# require permissions to access TextEditor.app
# https://github.com/dmgbuild/dmgbuild/blob/refs/tags/v1.6.2/tests/examples/settings.py#L17
doCheck = false;

meta = {
description = "MacOS command line utility to build disk images";
homepage = "https://github.com/dmgbuild/dmgbuild";
changelog = "https://github.com/dmgbuild/dmgbuild/releases/tag/v${version}";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ moraxyc ];
mainProgram = "dmgbuild";
platforms = lib.platforms.darwin;
};
}
2 changes: 2 additions & 0 deletions pkgs/top-level/python-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -3622,6 +3622,8 @@ self: super: with self; {

dmenu-python = callPackage ../development/python-modules/dmenu { };

dmgbuild = callPackage ../development/python-modules/dmgbuild { };

dmt-core = callPackage ../development/python-modules/dmt-core { };

dm-control = callPackage ../development/python-modules/dm-control { };
Expand Down

0 comments on commit e024bbe

Please sign in to comment.