1{
2 lib,
3 buildPythonPackage,
4 fetchPypi,
5 setuptools,
6 pymupdf,
7}:
8buildPythonPackage rec {
9 pname = "cardimpose";
10 version = "0.2.1";
11 pyproject = true;
12
13 src = fetchPypi {
14 inherit pname version;
15 hash = "sha256-7GyLTUzWd9cZ8/k+0FfzKW3H2rKZ3NHqkZkNmiQ+Tec=";
16 };
17
18 build-system = [ setuptools ];
19
20 dependencies = [ pymupdf ];
21
22 pythonImportsCheck = [ "cardimpose" ];
23
24 meta = {
25 mainProgram = "cardimpose";
26 description = "Library for imposing PDF files";
27 longDescription = ''
28 Cardimpose is a Python library that makes it easy to arrange multiple
29 copies of a PDF on a larger document, perfect for scenarios like printing
30 business cards. The library lets you customize your layout while adding
31 crop marks and comes with a handy command line tool.
32 '';
33 homepage = "https://github.com/frsche/cardimpose";
34 license = lib.licenses.agpl3Only;
35 platforms = pymupdf.meta.platforms;
36 badPlatforms = pymupdf.meta.badPlatforms or [ ];
37 maintainers = [ lib.maintainers.me-and ];
38 };
39}