{"id":18910712,"url":"https://github.com/z3ntu/python-pkgbuild","last_synced_at":"2025-04-15T06:31:28.602Z","repository":{"id":42384961,"uuid":"52263454","full_name":"z3ntu/python-pkgbuild","owner":"z3ntu","description":"Python library to parse pacman's .SRCINFO file","archived":false,"fork":false,"pushed_at":"2022-04-07T18:49:48.000Z","size":6,"stargazers_count":7,"open_issues_count":3,"forks_count":3,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-28T17:35:53.730Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/z3ntu.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-02-22T09:48:52.000Z","updated_at":"2024-07-22T02:59:13.000Z","dependencies_parsed_at":"2022-09-11T10:22:17.229Z","dependency_job_id":null,"html_url":"https://github.com/z3ntu/python-pkgbuild","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/z3ntu%2Fpython-pkgbuild","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/z3ntu%2Fpython-pkgbuild/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/z3ntu%2Fpython-pkgbuild/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/z3ntu%2Fpython-pkgbuild/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/z3ntu","download_url":"https://codeload.github.com/z3ntu/python-pkgbuild/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249020867,"owners_count":21199626,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-08T09:44:22.335Z","updated_at":"2025-04-15T06:31:28.283Z","avatar_url":"https://github.com/z3ntu.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# python-pkgbuild\nPython library to parse pacman's .SRCINFO file\n\n## Usage\n```\n\u003e\u003e\u003e import pkgbuild\n\u003e\u003e\u003e import json\n\u003e\u003e\u003e srcinfo = pkgbuild.SRCINFO(\"/path/to/.SRCINFO\")\n\u003e\u003e\u003e json.dumps(srcinfo.content)\n'{\"pkgrel\": \"1\", \"options\": [\"debug\", \"!strip\"], \"pkgbase\": \"sway-git\", \"license\": \"MIT\", \n\"pkgname\": \"sway-git\", \"makedepends\": [\"cmake\", \"git\", \"asciidoc\"], \"optdepends\": \n[\"rxvt-unicode: Default terminal emulator.\", \"dmenu: Default for launching applications.\", \n\"imagemagick: For taking screenshots.\", \"ffmpeg: For recording screencasts.\", \"i3status: To \ndisplay system information with a bar.\"], \"url\": \"https://github.com/SirCmpwn/sway\", \"pkgdesc\": \n\"i3 compatible window manager for Wayland\", \"arch\": [\"i686\", \"x86_64\"], \"source\": \n\"sway::git+https://github.com/SirCmpwn/sway.git\", \"sha1sums\": \"SKIP\", \"pkgver\": \"r1302.016a774\", \n\"depends\": [\"wlc-git\", \"xorg-server-xwayland\", \"xcb-util-image\", \"json-c\", \"pango\", \"cairo\", \n\"wayland\", \"gdk-pixbuf2\"]}'\n\u003e\u003e\u003e print(srcinfo.content.get(\"license\"))\nMIT\n\u003e\u003e\u003e print(pkgbuild.parse_source_field(srcinfo.content.get(\"source\"), pkgbuild.SourceParts.vcs))\ngit\n```\n\n## Installation\n```\npython setup.py install\n```\nIt is also available in the [AUR](https://aur.archlinux.org/packages/python-pkgbuild-git).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fz3ntu%2Fpython-pkgbuild","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fz3ntu%2Fpython-pkgbuild","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fz3ntu%2Fpython-pkgbuild/lists"}