Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at gcc-offload 55 lines 1.1 kB view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 poetry-core, 6 pythonOlder, 7 ebooklib, 8 lxml, 9 pillow, 10 pypdf, 11 python-slugify, 12}: 13 14buildPythonPackage rec { 15 pname = "comicon"; 16 version = "1.2.1"; 17 pyproject = true; 18 disabled = pythonOlder "3.10"; 19 20 src = fetchFromGitHub { 21 owner = "potatoeggy"; 22 repo = "comicon"; 23 rev = "refs/tags/v${version}"; 24 hash = "sha256-FvAgcpYvUTTE24jJB2ZxSNcNjAIyUBa3BaysjWXurtg="; 25 }; 26 27 nativeBuildInputs = [ 28 poetry-core 29 ]; 30 31 pythonRelaxDeps = [ 32 "pillow" 33 "pypdf" 34 ]; 35 36 propagatedBuildInputs = [ 37 ebooklib 38 lxml 39 pillow 40 pypdf 41 python-slugify 42 ]; 43 44 doCheck = false; # test artifacts are not public 45 46 pythonImportsCheck = [ "comicon" ]; 47 48 meta = with lib; { 49 changelog = "https://github.com/potatoeggy/comicon/releases/tag/v${version}"; 50 description = "Lightweight comic converter library between CBZ, PDF, and EPUB"; 51 homepage = "https://github.com/potatoeggy/comicon"; 52 license = licenses.agpl3Only; 53 maintainers = with maintainers; [ Scrumplex ]; 54 }; 55}