94427deb9d
GitOrigin-RevId: f91ee3065de91a3531329a674a45ddcb3467a650
58 lines
1 KiB
Nix
58 lines
1 KiB
Nix
{ lib
|
|
, fetchPypi
|
|
, buildPythonPackage
|
|
, setuptools-scm
|
|
, click
|
|
, commoncode
|
|
, pluggy
|
|
, pytestCheckHook
|
|
, pytest-xdist
|
|
, pythonOlder
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "plugincode";
|
|
version = "32.0.0";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-QTLZOxdVJxxuImydouIET/YuvLhztelY1mqN3enzRfo=";
|
|
};
|
|
|
|
dontConfigure = true;
|
|
|
|
nativeBuildInputs = [
|
|
setuptools-scm
|
|
];
|
|
|
|
propagatedBuildInputs = [
|
|
click
|
|
commoncode
|
|
pluggy
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
pytestCheckHook
|
|
pytest-xdist
|
|
];
|
|
|
|
pythonImportsCheck = [
|
|
"plugincode"
|
|
];
|
|
|
|
disabledTests = [
|
|
# We don't want black as an input
|
|
"test_skeleton_codestyle"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Library that provides plugin functionality for ScanCode toolkit";
|
|
homepage = "https://github.com/nexB/plugincode";
|
|
changelog = "https://github.com/nexB/plugincode/blob/v${version}/CHANGELOG.rst";
|
|
license = licenses.asl20;
|
|
maintainers = [ ];
|
|
};
|
|
}
|