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 = [
pytest-click
pytest-mock
pytest-pylint
pytestCheckHook
];

@ -1,28 +1,46 @@
{ lib
, buildPythonPackage
, fetchPypi
, mock
, nose
, pep8
, pylint
, mccabe
, pythonOlder
, fetchFromGitHub
, pytestCheckHook
}:
buildPythonPackage rec {
version = "3.1.0";
pname = "pamqp";
src = fetchPypi {
inherit pname version;
sha256 = "e4f0886d72c6166637a5513626148bf5a7e818073a558980e9aaed8b4ccf30da";
disabled = pythonOlder "3.7";
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; {
description = "RabbitMQ Focused AMQP low-level library";
homepage = "https://pypi.python.org/pypi/pamqp";
homepage = "https://github.com/gmr/pamqp";
license = licenses.bsd3;
maintainers = with maintainers; [ dotlambda ];
};
}

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

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

Loading…
Cancel
Save