Merge pull request #171866 from fabaff/pylint-django-fix
python310Packages.pylint-django: 2.5.2 -> 2.5.3main
commit
1703402f27
@ -0,0 +1,41 @@ |
|||||||
|
{ lib |
||||||
|
, buildPythonPackage |
||||||
|
, fetchFromGitHub |
||||||
|
, python-dateutil |
||||||
|
, python-mimeparse |
||||||
|
, pythonOlder |
||||||
|
}: |
||||||
|
|
||||||
|
buildPythonPackage rec { |
||||||
|
pname = "django-tastypie"; |
||||||
|
version = "0.14.4"; |
||||||
|
format = "setuptools"; |
||||||
|
|
||||||
|
disabled = pythonOlder "3.7"; |
||||||
|
|
||||||
|
src = fetchFromGitHub { |
||||||
|
owner = "django-tastypie"; |
||||||
|
repo = pname; |
||||||
|
rev = "v${version}"; |
||||||
|
hash = "sha256-O/aVi8BshOZmg9WQxrFlBEOXfgyqJKVK/QlEFG3Edqs="; |
||||||
|
}; |
||||||
|
|
||||||
|
propagatedBuildInputs = [ |
||||||
|
python-dateutil |
||||||
|
python-mimeparse |
||||||
|
]; |
||||||
|
|
||||||
|
# Tests requires a Django instance |
||||||
|
doCheck = false; |
||||||
|
|
||||||
|
pythonImportsCheck = [ |
||||||
|
"tastypie" |
||||||
|
]; |
||||||
|
|
||||||
|
meta = with lib; { |
||||||
|
description = "Utilities and helpers for writing Pylint plugins"; |
||||||
|
homepage = "https://github.com/django-tastypie/django-tastypie"; |
||||||
|
license = licenses.gpl2Only; |
||||||
|
maintainers = with maintainers; [ fab ]; |
||||||
|
}; |
||||||
|
} |
@ -1,39 +1,46 @@ |
|||||||
{ buildPythonPackage |
{ lib |
||||||
|
, buildPythonPackage |
||||||
, fetchFromGitHub |
, fetchFromGitHub |
||||||
, isPy3k |
|
||||||
, lib |
|
||||||
|
|
||||||
# pythonPackages |
|
||||||
, pylint |
, pylint |
||||||
|
, pytestCheckHook |
||||||
|
, pythonOlder |
||||||
, toml |
, toml |
||||||
}: |
}: |
||||||
|
|
||||||
buildPythonPackage rec { |
buildPythonPackage rec { |
||||||
pname = "pylint-plugin-utils"; |
pname = "pylint-plugin-utils"; |
||||||
version = "0.6"; |
version = "0.7"; |
||||||
disabled = !isPy3k; |
format = "setuptools"; |
||||||
|
|
||||||
|
disabled = pythonOlder "3.7"; |
||||||
|
|
||||||
src = fetchFromGitHub { |
src = fetchFromGitHub { |
||||||
owner = "PyCQA"; |
owner = "PyCQA"; |
||||||
repo = pname; |
repo = pname; |
||||||
rev = version; |
rev = version; |
||||||
sha256 = "1zapmbczxs1phrwbd0yvpfxhljd2pyv4pi9rwggaq38lcnc325s7"; |
hash = "sha256-uDsSSUWdlzuQz6umoYLbIotOYNEnLQu041ZZVMRd2ww="; |
||||||
}; |
}; |
||||||
|
|
||||||
propagatedBuildInputs = [ |
propagatedBuildInputs = [ |
||||||
pylint toml |
pylint |
||||||
|
toml |
||||||
|
]; |
||||||
|
|
||||||
|
checkInputs = [ |
||||||
|
pytestCheckHook |
||||||
|
]; |
||||||
|
|
||||||
|
pythonImportsCheck = [ |
||||||
|
"pylint_plugin_utils" |
||||||
]; |
]; |
||||||
|
|
||||||
checkPhase = '' |
# https://github.com/PyCQA/pylint-plugin-utils/issues/26 |
||||||
python tests.py |
doCheck = false; |
||||||
''; |
|
||||||
|
|
||||||
meta = with lib; { |
meta = with lib; { |
||||||
description = "Utilities and helpers for writing Pylint plugins"; |
description = "Utilities and helpers for writing Pylint plugins"; |
||||||
homepage = "https://github.com/PyCQA/pylint-plugin-utils"; |
homepage = "https://github.com/PyCQA/pylint-plugin-utils"; |
||||||
license = licenses.gpl2; |
license = licenses.gpl2Only; |
||||||
maintainers = with maintainers; [ |
maintainers = with maintainers; [ kamadorueda ]; |
||||||
kamadorueda |
|
||||||
]; |
|
||||||
}; |
}; |
||||||
} |
} |
||||||
|
Loading…
Reference in new issue