1{ lib
2, fetchPypi
3, buildPythonPackage
4, setuptools-scm
5, click
6, commoncode
7, pluggy
8, pytestCheckHook
9, pytest-xdist
10, pythonOlder
11}:
12
13buildPythonPackage rec {
14 pname = "plugincode";
15 version = "31.0.0";
16 format = "setuptools";
17
18 disabled = pythonOlder "3.7";
19
20 src = fetchPypi {
21 inherit pname version;
22 hash = "sha256-0BfdHQn/Kgct4ZT34KhMgMC3nS0unE3iL7DiWDhXDSk=";
23 };
24
25 dontConfigure = true;
26
27 nativeBuildInputs = [
28 setuptools-scm
29 ];
30
31 propagatedBuildInputs = [
32 click
33 commoncode
34 pluggy
35 ];
36
37 checkInputs = [
38 pytestCheckHook
39 pytest-xdist
40 ];
41
42 pythonImportsCheck = [
43 "plugincode"
44 ];
45
46 disabledTests = [
47 # We don't want black as an input
48 "test_skeleton_codestyle"
49 ];
50
51 meta = with lib; {
52 description = "Library that provides plugin functionality for ScanCode toolkit";
53 homepage = "https://github.com/nexB/plugincode";
54 license = licenses.asl20;
55 maintainers = teams.determinatesystems.members;
56 };
57}