Skip to content

Commit

Permalink
python3Packages.specfile: init at 0.32.6
Browse files Browse the repository at this point in the history
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
sielicki committed Nov 24, 2024
1 parent 21b0706 commit 0995fa0
Show file tree
Hide file tree
Showing 2 changed files with 45 additions and 0 deletions.
43 changes: 43 additions & 0 deletions pkgs/development/python-modules/specfile/default.nix
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 ];
};
}
2 changes: 2 additions & 0 deletions pkgs/top-level/python-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -14941,6 +14941,8 @@ self: super: with self; {

speaklater3 = callPackage ../development/python-modules/speaklater3 { };

specfile = callPackage ../development/python-modules/specfile { };

spectral-cube = callPackage ../development/python-modules/spectral-cube { };

speechbrain = callPackage ../development/python-modules/speechbrain { };
Expand Down

0 comments on commit 0995fa0

Please sign in to comment.