1{
2 lib,
3 buildPythonPackage,
4 fetchPypi,
5 chardet,
6 attrs,
7 commoncode,
8 pytestCheckHook,
9 setuptools-scm,
10}:
11
12buildPythonPackage rec {
13 pname = "debian-inspector";
14 version = "31.1.1";
15 pyproject = true;
16
17 src = fetchPypi {
18 pname = "debian_inspector";
19 inherit version;
20 hash = "sha256-uyFsYrb7D9cM1OQzkIERX0oV711uI/TEKF6t67z8egU=";
21 };
22
23 dontConfigure = true;
24
25 build-system = [ setuptools-scm ];
26
27 dependencies = [
28 chardet
29 attrs
30 ];
31
32 nativeCheckInputs = [
33 commoncode
34 pytestCheckHook
35 ];
36
37 pythonImportsCheck = [ "debian_inspector" ];
38
39 meta = with lib; {
40 description = "Utilities to parse Debian package, copyright and control files";
41 homepage = "https://github.com/nexB/debian-inspector";
42 changelog = "https://github.com/aboutcode-org/debian-inspector/blob/v${version}/CHANGELOG.rst";
43 license = with licenses; [
44 asl20
45 bsd3
46 mit
47 ];
48 maintainers = [ ];
49 };
50}