1{
2 lib,
3 fetchPypi,
4 buildPythonPackage,
5 setuptools-scm,
6 click,
7 commoncode,
8 pluggy,
9 pytestCheckHook,
10 pytest-xdist,
11 pythonOlder,
12}:
13
14buildPythonPackage rec {
15 pname = "plugincode";
16 version = "32.0.0";
17 format = "setuptools";
18
19 disabled = pythonOlder "3.7";
20
21 src = fetchPypi {
22 inherit pname version;
23 hash = "sha256-QTLZOxdVJxxuImydouIET/YuvLhztelY1mqN3enzRfo=";
24 };
25
26 dontConfigure = true;
27
28 nativeBuildInputs = [ setuptools-scm ];
29
30 propagatedBuildInputs = [
31 click
32 commoncode
33 pluggy
34 ];
35
36 nativeCheckInputs = [
37 pytestCheckHook
38 pytest-xdist
39 ];
40
41 # wants to read /etc/os-release and crashes because that is not available in the sandbox
42 # pythonImportsCheck = [ "plugincode" ];
43
44 disabledTests = [
45 # We don't want black as an input
46 "test_skeleton_codestyle"
47 ];
48
49 meta = with lib; {
50 description = "Library that provides plugin functionality for ScanCode toolkit";
51 homepage = "https://github.com/nexB/plugincode";
52 changelog = "https://github.com/nexB/plugincode/blob/v${version}/CHANGELOG.rst";
53 license = licenses.asl20;
54 maintainers = [ ];
55 };
56}