nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 59 lines 1.4 kB view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 fetchpatch, 6 setuptools, 7 setuptools-scm, 8 pillow, 9 pypdfium2, 10 pytest-cov-stub, 11 pytestCheckHook, 12}: 13 14buildPythonPackage rec { 15 pname = "zebrafy"; 16 version = "1.2.2"; 17 pyproject = true; 18 19 src = fetchFromGitHub { 20 owner = "miikanissi"; 21 repo = "zebrafy"; 22 tag = version; 23 hash = "sha256-B8jrFQh5swDMfYjdMcY0Hh2VAzknDwarDKVAML6F2r4="; 24 }; 25 26 patches = [ 27 # fix compatibility with pypdfium2 5.x: https://github.com/miikanissi/zebrafy/pull/20 28 (fetchpatch { 29 url = "https://github.com/miikanissi/zebrafy/pull/20/commits/cc15c4a28d9e8aec022d22397ff752600b9ede52.patch"; 30 hash = "sha256-KAjfKPqmTvfoQN7YPLayPyq2sueDASyU/lMCgLCl1RU="; 31 }) 32 ]; 33 34 build-system = [ 35 setuptools 36 setuptools-scm 37 ]; 38 39 dependencies = [ 40 pillow 41 pypdfium2 42 ]; 43 44 pythonImportsCheck = [ "zebrafy" ]; 45 46 nativeCheckInputs = [ 47 pytestCheckHook 48 pytest-cov-stub 49 ]; 50 51 meta = { 52 description = "Python library for converting PDF and images to and from Zebra Programming Language"; 53 downloadPage = "https://github.com/miikanissi/zebrafy"; 54 changelog = "https://github.com/miikanissi/zebrafy/releases/tag/${version}"; 55 homepage = "https://zebrafy.readthedocs.io/en/latest/"; 56 license = lib.licenses.lgpl3Plus; 57 maintainers = with lib.maintainers; [ ethancedwards8 ]; 58 }; 59}