1a04744f74
There is no need to disable Python packages for Python versions that are
no longer in Nixpkgs.
This change was generated using the following script:
pattern='^\s*disabled\s*=\s*pythonOlder\s*"3\.\([0-9]\|10\)"\s*;\s*$'
for f in $(find -name '*.nix'); do
grep -q "$pattern" "$f" || continue
sed -i "/$pattern/d" "$f"
if [ $(grep -c pythonOlder "$f") == 1 ]; then
sed -i '/^\s*pythonOlder,\s*$/d' "$f"
fi
nixfmt "$f"
done
52 lines
1.1 KiB
Nix
52 lines
1.1 KiB
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
pytestCheckHook,
|
|
mock,
|
|
jinja2,
|
|
pygments, # for Erlang support
|
|
pathspec, # for .gitignore support
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "lizard";
|
|
version = "1.17.31";
|
|
format = "setuptools";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "terryyin";
|
|
repo = "lizard";
|
|
rev = version;
|
|
hash = "sha256-8lu4EknyAI+gn7GOSo13RRHNogpZdgxJ9fTvy7NyIsM=";
|
|
};
|
|
|
|
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 = {
|
|
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 = lib.licenses.mit;
|
|
maintainers = with lib.maintainers; [ jpetrucciani ];
|
|
};
|
|
}
|