Skip to content

Commit

Permalink
pythonPackages.pylint-django: checkPhase
Browse files Browse the repository at this point in the history
  • Loading branch information
maxxk authored and Jon committed Aug 17, 2020
1 parent b384768 commit 8d9f9fd
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions pkgs/development/python-modules/pylint-django/default.nix
Expand Up @@ -6,6 +6,11 @@
# pythonPackages
, django
, pylint-plugin-utils

# pythonPackages for checkInputs
, coverage
, factory_boy
, pytest
}:

buildPythonPackage rec {
Expand All @@ -25,8 +30,14 @@ buildPythonPackage rec {
pylint-plugin-utils
];

# Testing requires checkout from other repositories
doCheck = false;
checkInputs = [ coverage factory_boy pytest ];

# Check command taken from scripts/test.sh
# Skip test external_django_tables2_noerror_meta_class:
# requires an unpackaged django_tables2
checkPhase = ''
python pylint_django/tests/test_func.py -v -k "not tables2"
'';

meta = with lib; {
description = "A Pylint plugin to analyze Django applications";
Expand Down

0 comments on commit 8d9f9fd

Please sign in to comment.