1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 flexmock,
6 git,
7 pytestCheckHook,
8 rpm,
9 setuptools-scm,
10 setuptools,
11}:
12
13buildPythonPackage rec {
14 pname = "specfile";
15 version = "0.37.0";
16 pyproject = true;
17
18 src = fetchFromGitHub {
19 owner = "packit";
20 repo = "specfile";
21 tag = version;
22 hash = "sha256-gYbnbs2mkQghQ0Zvenal5bEYObLpDB3Xu4kO9oqi0Ms=";
23 };
24
25 build-system = [
26 setuptools
27 setuptools-scm
28 ];
29
30 dependencies = [ rpm ];
31
32 nativeCheckInputs = [
33 git
34 flexmock
35 pytestCheckHook
36 ];
37
38 pythonImportsCheck = [ "specfile" ];
39
40 disabledTests = [
41 # AssertionError
42 "test_update_tag"
43 "test_shell_expansions"
44 ];
45
46 meta = {
47 description = "Library for parsing and manipulating RPM spec files";
48 homepage = "https://github.com/packit/specfile";
49 changelog = "https://github.com/packit/specfile/blob/${src.tag}/CHANGELOG.md";
50 license = lib.licenses.mit;
51 maintainers = with lib.maintainers; [ fab ];
52 };
53}