Files
nixpkgs/pkgs/development/python-modules/lizard/default.nix
Nathan Mills 395b6df1b9 python3Packages.lizard: Add missing dependencies
test_gitignore_filter was failing because get_all_source_files was failing to import pathspec, causing the mock .gitignore file to be ignored.
2025-05-21 03:55:58 +00:00

54 lines
1.1 KiB
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
pythonOlder,
pytestCheckHook,
mock,
jinja2,
pygments, # for Erlang support
pathspec, # for .gitignore support
}:
buildPythonPackage rec {
pname = "lizard";
version = "1.17.30";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "terryyin";
repo = "lizard";
rev = version;
hash = "sha256-yXiRbC85IeeNR8rWSqLTQD9qy2CzAhlDD7YeTm5Vj9c=";
};
propagatedBuildInputs = [
jinja2
pygments
pathspec
];
nativeCheckInputs = [
pytestCheckHook
mock
];
disabledTestPaths = [
# re.error: global flags not at the start of the expression at position 14
"test/test_languages/testFortran.py"
];
pythonImportsCheck = [ "lizard" ];
meta = with lib; {
changelog = "https://github.com/terryyin/lizard/blob/${version}/CHANGELOG.md";
description = "Code analyzer without caring the C/C++ header files";
mainProgram = "lizard";
downloadPage = "https://github.com/terryyin/lizard";
homepage = "http://www.lizard.ws";
license = licenses.mit;
maintainers = with maintainers; [ jpetrucciani ];
};
}