mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-11-28 08:49:51 +00:00
The latest release of cardimpose adds a GUI, which uses tkinter. Add that as a dependency. A quick test shows this has no significant impact on the closure size, so I don't think it's worth creating a separate package without the GUI to provide a smaller closure size for people who are worried about unnecessary dependencies.
47 lines
1.3 KiB
Nix
47 lines
1.3 KiB
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchPypi,
|
|
setuptools,
|
|
pymupdf,
|
|
tkinter,
|
|
}:
|
|
buildPythonPackage (finalAttrs: {
|
|
pname = "cardimpose";
|
|
version = "0.3.0";
|
|
pyproject = true;
|
|
|
|
# Get source from Pypi as the GitHub repository doesn't have any version
|
|
# indicators, so there's no way to tell when a new version is available or
|
|
# what the version should be.
|
|
src = fetchPypi {
|
|
inherit (finalAttrs) pname version;
|
|
hash = "sha256-NVRk/sDCEeQYx4bwJ268w7oitq9y4FqOo1m1pzPRLiE=";
|
|
};
|
|
|
|
build-system = [ setuptools ];
|
|
|
|
dependencies = [
|
|
pymupdf
|
|
tkinter
|
|
];
|
|
|
|
pythonImportsCheck = [ "cardimpose" ];
|
|
|
|
meta = {
|
|
mainProgram = "cardimpose";
|
|
description = "Library for imposing PDF files";
|
|
longDescription = ''
|
|
Cardimpose is a Python library that makes it easy to arrange multiple
|
|
copies of a PDF on a larger document, perfect for scenarios like printing
|
|
business cards. The library lets you customize your layout while adding
|
|
crop marks and comes with a handy command line tool.
|
|
'';
|
|
homepage = "https://github.com/frsche/cardimpose";
|
|
license = lib.licenses.agpl3Only;
|
|
platforms = pymupdf.meta.platforms;
|
|
badPlatforms = pymupdf.meta.badPlatforms or [ ];
|
|
maintainers = [ lib.maintainers.me-and ];
|
|
};
|
|
})
|