blob: 40a7f925dda3b77fc9846b28b4b175708913e905 (
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
|
{
lib,
stdenv,
buildPythonPackage,
fetchFromGitLab,
setuptools,
setuptools-scm,
charset-normalizer,
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "python-debian";
version = "1.0.1";
pyproject = true;
src = fetchFromGitLab {
domain = "salsa.debian.org";
owner = "python-debian-team";
repo = "python-debian";
tag = version;
hash = "sha256-lSKtlBqAa8cJZZHMVb90eYIGem4DwVZLldaYSAJBNek=";
};
build-system = [
setuptools
setuptools-scm
];
dependencies = [
charset-normalizer
];
nativeCheckInputs = [
pytestCheckHook
];
disabledTestPaths = lib.optionals stdenv.hostPlatform.isDarwin [
"tests/test_debfile.py"
];
pythonImportsCheck = [ "debian" ];
meta = {
description = "Debian package related modules";
homepage = "https://salsa.debian.org/python-debian-team/python-debian";
changelog = "https://salsa.debian.org/python-debian-team/python-debian/-/blob/master/debian/changelog";
license = lib.licenses.gpl2Plus;
maintainers = with lib.maintainers; [ nickcao ];
};
}
|