{"id":24649012,"url":"https://github.com/archlinux/pytest-pacman","last_synced_at":"2025-06-28T06:06:39.019Z","repository":{"id":221874713,"uuid":"755599868","full_name":"archlinux/pytest-pacman","owner":"archlinux","description":"A pytest plugin which provides helpers to create pacman's localdb and sync db's (read-only mirror)","archived":false,"fork":false,"pushed_at":"2024-02-10T17:58:49.000Z","size":39,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":8,"default_branch":"main","last_synced_at":"2025-01-25T17:07:57.316Z","etag":null,"topics":["pacman","pytest"],"latest_commit_sha":null,"homepage":"https://gitlab.archlinux.org/archlinux/pytest-pacman","language":"Python","has_issues":false,"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/archlinux.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,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2024-02-10T17:46:49.000Z","updated_at":"2024-10-21T19:57:22.000Z","dependencies_parsed_at":"2024-02-10T18:44:16.703Z","dependency_job_id":"60a7b248-afcb-464c-9ef6-10a46e225c49","html_url":"https://github.com/archlinux/pytest-pacman","commit_stats":null,"previous_names":["archlinux/pytest-pacman"],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/archlinux/pytest-pacman","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/archlinux%2Fpytest-pacman","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/archlinux%2Fpytest-pacman/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/archlinux%2Fpytest-pacman/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/archlinux%2Fpytest-pacman/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/archlinux","download_url":"https://codeload.github.com/archlinux/pytest-pacman/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/archlinux%2Fpytest-pacman/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262382745,"owners_count":23302298,"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":["pacman","pytest"],"created_at":"2025-01-25T17:08:04.034Z","updated_at":"2025-06-28T06:06:39.002Z","avatar_url":"https://github.com/archlinux.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# pytest-pacman - pacman db pytest fixture\n\nThis is a pytest plugin which will generate a test pacman db. To be used in\npyalpm, archweb and arch-signoff for testing.\n\n## Fixtures\n\n* generate_syncdb\n* generate_localdb\n* generate_package\n\n## Usage\n\nInstalling is as simple as e.g.\n\n```\npip install pytest-pacman\n```\n\n## Pacman syncdb structure\n\nPacman syncdb databases are usually stored in '/var/lib/pacman/sync' as gzip'd\ntar archives. The structure in the archive is as following:\n\n```\n$pkgname-$pkgver-$pkgrel/\n$pkgname-$pkgver-$pkgrel/desc\n$pkgname-$epoch:$pkgver-$pkgrel/\n$pkgname-$epoch:$pkgver-$pkgrel/desc\n```\n\nThe desc file is formatted as following:\n\n```\n%FILENAME%\n$pkgname-$pkgver-$pkgrel-$arch.pkg.tar.$ext\n\n%NAME%\n$pkgname\n\n%BASE%\n$pkgbase\n\n%VERSION%\n$pkgver-$pkgrel\n\n%DESC%\nMy awesome package\n\n%CSIZE%\n671256\n\n%ISIZE%\n3460513\n\n%MD5SUM%\nc9f6e74471bce4b07d0f54b75e65b27c\n\n%SHA256SUM%\nc5af2664d994671a61b5038c468e6b4dae5dde71785dd687216f67f28df956d3\n\n%URL%\nhttps://archlinux.org\n\n%LICENSE%\nBSD\n\n%ARCH%\n$arch\n\n%BUILDDATE%\n$epoch\n\n%PACKAGER%\nJohn Doe \u003cpackage@archlinux.org\u003e\n\n%DEPENDS%\nzlib\nxz\n\n%MAKEDEPENDS%\nsystemd\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farchlinux%2Fpytest-pacman","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Farchlinux%2Fpytest-pacman","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farchlinux%2Fpytest-pacman/lists"}