{"id":30203800,"url":"https://github.com/wenliangcan/pip2pkgbuild","last_synced_at":"2025-08-13T12:06:28.482Z","repository":{"id":38417949,"uuid":"42518074","full_name":"wenLiangcan/pip2pkgbuild","owner":"wenLiangcan","description":"Generate PKGBUILD file for a Python module from PyPi","archived":false,"fork":false,"pushed_at":"2024-09-03T22:34:27.000Z","size":50,"stargazers_count":59,"open_issues_count":8,"forks_count":12,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-06-21T02:06:31.771Z","etag":null,"topics":["arch-linux","packaging","pkgbuild","python"],"latest_commit_sha":null,"homepage":"https://pypi.org/project/pip2pkgbuild/","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/wenLiangcan.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2015-09-15T12:32:13.000Z","updated_at":"2025-03-10T15:34:11.000Z","dependencies_parsed_at":"2024-02-21T15:41:48.629Z","dependency_job_id":"6638c836-9766-45ca-afbe-a9067eeb4174","html_url":"https://github.com/wenLiangcan/pip2pkgbuild","commit_stats":{"total_commits":34,"total_committers":5,"mean_commits":6.8,"dds":"0.17647058823529416","last_synced_commit":"4412a98a021453c60a407fda1ac0f9d6e5e2752e"},"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/wenLiangcan/pip2pkgbuild","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wenLiangcan%2Fpip2pkgbuild","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wenLiangcan%2Fpip2pkgbuild/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wenLiangcan%2Fpip2pkgbuild/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wenLiangcan%2Fpip2pkgbuild/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wenLiangcan","download_url":"https://codeload.github.com/wenLiangcan/pip2pkgbuild/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wenLiangcan%2Fpip2pkgbuild/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270236464,"owners_count":24550204,"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","status":"online","status_checked_at":"2025-08-13T02:00:09.904Z","response_time":66,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["arch-linux","packaging","pkgbuild","python"],"created_at":"2025-08-13T12:06:26.729Z","updated_at":"2025-08-13T12:06:28.448Z","avatar_url":"https://github.com/wenLiangcan.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![PyPi](https://img.shields.io/pypi/v/pip2pkgbuild.svg)](https://pypi.org/project/pip2pkgbuild/)\n[![Downloads](https://static.pepy.tech/badge/pip2pkgbuild)](https://pypi.org/project/pip2pkgbuild/)\n\n# About\n\nRe-implementing [`bluepeppers/pip2arch`](https://github.com/bluepeppers/pip2arch\u003e) with some improvements:  \n\n- Supports generating `PKGBUILD` contained [multiple packages](https://www.archlinux.org/pacman/PKGBUILD.5.html#_package_splitting).\n- Smarter package license detection.\n- License file installation (by @brycepg).\n- Maintainer information generation (by @brycepg).\n- Supports generating PEP517 based installation instructments.\n\n\n# Installation\n\nInstall from `AUR`:\n```shell\n$ git clone https://aur.archlinux.org/pip2pkgbuild.git\n$ # for Python 2:\n$ # git clone https://aur.archlinux.org/python2-pip2pkgbuild.git pip2pkgbuild\n$ cd pip2pkgbuild\n$ makepkg -si\n```\n\nInstall from `PyPi`:\n```shell\n$ pip install pip2pkgbuild\n```\n\nInstall manually:\n```shell\n$ cp pip2pkgbuild/pip2pkgbuild.py ~/bin/pip2pkgbuild\n$ chmod u+x ~/bin/pip2pkgbuild\n```\n\n# Usage\n```\n usage: pip2pkgbuild [-h] [-v MODULE_VERSION] [-p {python,python2,multi}]\n                     [-b PKGBASE] [-n PKGNAME]\n                     [--python2-package-name PY2_PKGNAME]\n                     [-d [DEPENDS [DEPENDS ...]]]\n                     [--python2-depends [DEPENDS [DEPENDS ...]]]\n                     [--python3-depends [DEPENDS [DEPENDS ...]]]\n                     [-m [MKDEPENDS [MKDEPENDS ...]]] [-o] [-V] [-l]\n                     [--name NAME] [--email EMAIL]\n                     module\n\n Generate PKGBUILD file for a Python module from PyPi\n\n positional arguments:\n   module                The Python module name\n\n optional arguments:\n   -h, --help            show this help message and exit\n   -v MODULE_VERSION, --module-version MODULE_VERSION\n                         Use the specified version of the Python module\n   -p {python,python2,multi}, --python-version {python,python2,multi}\n                         The Python version on which the PKGBUILD bases\n   -b PKGBASE, --package-basename PKGBASE\n                         Specifiy the pkgbase value, the first value in the\n                         pkgname array is used by default\n   -n PKGNAME, --package-name PKGNAME\n                         Specify the pkgname value or the name for the Python 3\n                         based package in a package group\n   --python2-package-name PY2_PKGNAME\n                         Specify the name for the Python 2 based package in a\n                         package group\n   -d [DEPENDS [DEPENDS ...]], --depends [DEPENDS [DEPENDS ...]]\n                         Dependencies for the whole PKGBUILD\n   --python2-depends [DEPENDS [DEPENDS ...]]\n                         Dependencies for the Python 2 based package in a\n                         package group\n   --python3-depends [DEPENDS [DEPENDS ...]]\n                         Dependencies for the Python 3 based package in a\n                         package group\n   -m [MKDEPENDS [MKDEPENDS ...]], --make-depends [MKDEPENDS [MKDEPENDS ...]]\n                         Dependencies required while running the makepkg\n                         command\n   -o, --print-out       Print on screen rather than saving to PKGBUILD file\n   -V, --version         show program's version number and exit\n   -l, --find-license    Attempt to find package license to install\n   --name NAME           Your full name for the package maintainer line e.g.\n                         'yourFirstName yourLastName'\n   --email EMAIL         Your email for the package maintainer line\n   --pep517              Prefer PEP517 based installation method if supporting by the module\n```\n\n\n# Examples\n\nGenerate a Python 2 based `PKGBUILD` for `Django` with `pkgname` \"django\":\n```shell\n$ pip2pkgbuild django -p python2 -n django\n```\n\nGenerate `PKGBUILD` for `Flask`, containing both Python 2 and 3 packages with `pkgbase` \"flask\":\n```shell\n$ pip2pkgbuild flask -p multi -b flask\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwenliangcan%2Fpip2pkgbuild","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwenliangcan%2Fpip2pkgbuild","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwenliangcan%2Fpip2pkgbuild/lists"}