nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 52 lines 1.1 kB view raw
1{ 2 lib, 3 python3Packages, 4 fetchFromGitHub, 5 fetchpatch2, 6 versionCheckHook, 7}: 8 9python3Packages.buildPythonApplication rec { 10 pname = "render50"; 11 version = "9.2.10"; 12 pyproject = true; 13 14 src = fetchFromGitHub { 15 owner = "cs50"; 16 repo = "render50"; 17 tag = "v${version}"; 18 hash = "sha256-YaLLWrae8vgOYLmfFlPa6WkKGNlUj+n76NRpg0qm6QI="; 19 }; 20 21 build-system = [ 22 python3Packages.setuptools 23 ]; 24 25 dependencies = with python3Packages; [ 26 backports-shutil-which 27 braceexpand 28 beautifulsoup4 29 natsort 30 pygments 31 pypdf 32 requests 33 six 34 termcolor 35 weasyprint 36 ]; 37 38 nativeCheckInputs = [ versionCheckHook ]; 39 40 # no pytest checks 41 42 meta = { 43 description = "Generate syntax-highlighted PDFs of source code"; 44 homepage = "https://cs50.readthedocs.io/render50/"; 45 downloadPage = "https://github.com/cs50/render50"; 46 changelog = "https://github.com/cs50/render50/releases/tag/${src.tag}"; 47 license = lib.licenses.gpl3Only; 48 platforms = lib.platforms.unix; 49 maintainers = with lib.maintainers; [ ethancedwards8 ]; 50 mainProgram = "render50"; 51 }; 52}