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