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