Merge pull request #174045 from dotlambda/python3Packages-no-pylint

main
Martin Weinelt 2 years ago committed by GitHub
commit 855dee370a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      pkgs/development/python-modules/lektor/default.nix
  2. 42
      pkgs/development/python-modules/pamqp/default.nix
  3. 2
      pkgs/development/python-modules/pytile/default.nix
  4. 5
      pkgs/servers/home-assistant/default.nix

@ -62,7 +62,6 @@ buildPythonPackage rec {
checkInputs = [ checkInputs = [
pytest-click pytest-click
pytest-mock pytest-mock
pytest-pylint
pytestCheckHook pytestCheckHook
]; ];

@ -1,28 +1,46 @@
{ lib { lib
, buildPythonPackage , buildPythonPackage
, fetchPypi , pythonOlder
, mock , fetchFromGitHub
, nose , pytestCheckHook
, pep8
, pylint
, mccabe
}: }:
buildPythonPackage rec { buildPythonPackage rec {
version = "3.1.0"; version = "3.1.0";
pname = "pamqp"; pname = "pamqp";
src = fetchPypi { disabled = pythonOlder "3.7";
inherit pname version;
sha256 = "e4f0886d72c6166637a5513626148bf5a7e818073a558980e9aaed8b4ccf30da"; format = "setuptools";
src = fetchFromGitHub {
owner = "gmr";
repo = "pamqp";
rev = version;
hash = "sha256-qiYfQsyYvG6pyRFDt3pyYKNNWNP88maj+VAeGD68OmY=";
}; };
buildInputs = [ mock nose pep8 pylint mccabe ]; checkInputs = [
pytestCheckHook
];
pythonImportsCheck = [
"pamqp.base"
"pamqp.body"
"pamqp.commands"
"pamqp.common"
"pamqp.decode"
"pamqp.encode"
"pamqp.exceptions"
"pamqp.frame"
"pamqp.header"
"pamqp.heartbeat"
];
meta = with lib; { meta = with lib; {
description = "RabbitMQ Focused AMQP low-level library"; description = "RabbitMQ Focused AMQP low-level library";
homepage = "https://pypi.python.org/pypi/pamqp"; homepage = "https://github.com/gmr/pamqp";
license = licenses.bsd3; license = licenses.bsd3;
maintainers = with maintainers; [ dotlambda ];
}; };
} }

@ -4,7 +4,6 @@
, buildPythonPackage , buildPythonPackage
, fetchFromGitHub , fetchFromGitHub
, poetry-core , poetry-core
, pylint
, pytest-aiohttp , pytest-aiohttp
, pytest-asyncio , pytest-asyncio
, pytestCheckHook , pytestCheckHook
@ -31,7 +30,6 @@ buildPythonPackage rec {
propagatedBuildInputs = [ propagatedBuildInputs = [
aiohttp aiohttp
pylint
]; ];
checkInputs = [ checkInputs = [

@ -282,9 +282,6 @@ in python.pkgs.buildPythonApplication rec {
respx respx
stdlib-list stdlib-list
tqdm tqdm
# required by tests/pylint
astroid
pylint
# required by tests/auth/mfa_modules # required by tests/auth/mfa_modules
pyotp pyotp
] ++ lib.concatMap (component: getPackages component python.pkgs) [ ] ++ lib.concatMap (component: getPackages component python.pkgs) [
@ -308,6 +305,8 @@ in python.pkgs.buildPythonApplication rec {
]; ];
disabledTestPaths = [ disabledTestPaths = [
# we don't care about code quality
"tests/pylint"
# don't bulk test all components # don't bulk test all components
"tests/components" "tests/components"
# pyotp since v2.4.0 complains about the short mock keys, hass pins v2.3.0 # pyotp since v2.4.0 complains about the short mock keys, hass pins v2.3.0

Loading…
Cancel
Save