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