python3Packages.jaraco_logging: disable tests, no longer on pypi

This commit is contained in:
Jonathan Ringer 2020-06-22 17:49:22 -07:00 committed by Jon
parent 12bf275bab
commit 893d924d53
2 changed files with 6 additions and 46 deletions

View file

@ -1,38 +0,0 @@
From 4b9801d9bbe535fd6719933b96278915573e3595 Mon Sep 17 00:00:00 2001
From: Maximilian Bosch <maximilian@mbosch.me>
Date: Sun, 10 Mar 2019 16:42:21 +0100
Subject: [PATCH] Don't run flake8 checks during the build
If the code simply violates their code style, the Nix package shouldn't fail.
---
pytest.ini | 2 +-
setup.cfg | 1 -
2 files changed, 1 insertion(+), 2 deletions(-)
diff --git a/pytest.ini b/pytest.ini
index 9b3c1ec..a5189c1 100644
--- a/pytest.ini
+++ b/pytest.ini
@@ -1,6 +1,6 @@
[pytest]
norecursedirs=dist build .tox .eggs
-addopts=--doctest-modules --flake8
+addopts=--doctest-modules
doctest_optionflags=ALLOW_UNICODE ELLIPSIS
filterwarnings=
ignore:Possible nested set::pycodestyle:113
diff --git a/setup.cfg b/setup.cfg
index 3e7bbed..5cac7a2 100644
--- a/setup.cfg
+++ b/setup.cfg
@@ -29,7 +29,6 @@ setup_requires = setuptools_scm >= 1.15.0
testing =
pytest >= 3.5, !=3.7.3
pytest-checkdocs
- pytest-flake8
docs =
sphinx
jaraco.packaging >= 3.2
--
2.18.1

View file

@ -1,5 +1,5 @@
{ lib, buildPythonPackage, fetchPypi, setuptools_scm
, tempora, six, pytest
, tempora, six
}:
buildPythonPackage rec {
@ -11,15 +11,13 @@ buildPythonPackage rec {
sha256 = "31716fe84d3d5df39d95572942513bd4bf8ae0a478f64031eff4c2ea9e83434e";
};
patches = [ ./0001-Don-t-run-flake8-checks-during-the-build.patch ];
buildInputs = [ setuptools_scm ];
nativeBuildInputs = [ setuptools_scm ];
propagatedBuildInputs = [ tempora six ];
checkInputs = [ pytest ];
checkPhase = ''
PYTHONPATH=".:$PYTHONPATH" pytest
'';
# test no longer packaged with pypi
doCheck = false;
pythonImportsCheck = [ "jaraco.logging" ];
meta = with lib; {
description = "Support for Python logging facility";