-
-
Notifications
You must be signed in to change notification settings - Fork 14.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
python3Packages.specfile: init at 0.32.6
This is a library from the packit project which provides a python interface for parsing RPM spec files. It requires and uses pkgs.rpm/pkgs.python3Packages.rpm under the hood for evaluation. Signed-off-by: Nicholas Sielicki <[email protected]>
- Loading branch information
Showing
2 changed files
with
45 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
{ | ||
lib, | ||
buildPythonPackage, | ||
fetchFromGitHub, | ||
setuptools, | ||
setuptools-scm, | ||
rpm, | ||
nix-update-script, | ||
}: | ||
|
||
buildPythonPackage rec { | ||
pname = "specfile"; | ||
version = "0.32.6"; | ||
pyproject = true; | ||
|
||
src = fetchFromGitHub { | ||
owner = "packit"; | ||
repo = "specfile"; | ||
rev = version; | ||
hash = "sha256-rUrXlr0277r4XiOiNmq3FBfOKWZGVUSf+S8MBmUfl+8="; | ||
}; | ||
|
||
build-system = [ | ||
setuptools | ||
setuptools-scm | ||
]; | ||
|
||
propagatedBuildInputs = [ rpm ]; | ||
pythonImportsCheck = [ | ||
"specfile" | ||
"rpm" | ||
]; | ||
|
||
passthru.updateScript = nix-update-script { }; | ||
|
||
meta = { | ||
description = "A library for parsing and manipulating RPM spec files"; | ||
homepage = "https://packit.dev/specfile"; | ||
changelog = "https://github.com/packit/specfile/blob/${src.rev}/CHANGELOG.md"; | ||
license = lib.licenses.mit; | ||
maintainers = with lib.maintainers; [ sielicki ]; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters