depot/third_party/nixpkgs/pkgs/development/python-modules/plugincode/default.nix
Default email f34ce41345 Project import generated by Copybara.
GitOrigin-RevId: b73c2221a46c13557b1b3be9c2070cc42cf01eb3
2024-07-27 08:49:29 +02:00

56 lines
1.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
];
# wants to read /etc/os-release and crashes because that is not available in the sandbox
# 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 = [ ];
};
}