nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

python3Packages.jaraco_logging: disable tests, no longer on pypi

authored by

Jonathan Ringer and committed by
Jon
893d924d 12bf275b

+6 -46
-38
pkgs/development/python-modules/jaraco_logging/0001-Don-t-run-flake8-checks-during-the-build.patch
··· 1 - From 4b9801d9bbe535fd6719933b96278915573e3595 Mon Sep 17 00:00:00 2001 2 - From: Maximilian Bosch <maximilian@mbosch.me> 3 - Date: Sun, 10 Mar 2019 16:42:21 +0100 4 - Subject: [PATCH] Don't run flake8 checks during the build 5 - 6 - If the code simply violates their code style, the Nix package shouldn't fail. 7 - --- 8 - pytest.ini | 2 +- 9 - setup.cfg | 1 - 10 - 2 files changed, 1 insertion(+), 2 deletions(-) 11 - 12 - diff --git a/pytest.ini b/pytest.ini 13 - index 9b3c1ec..a5189c1 100644 14 - --- a/pytest.ini 15 - +++ b/pytest.ini 16 - @@ -1,6 +1,6 @@ 17 - [pytest] 18 - norecursedirs=dist build .tox .eggs 19 - -addopts=--doctest-modules --flake8 20 - +addopts=--doctest-modules 21 - doctest_optionflags=ALLOW_UNICODE ELLIPSIS 22 - filterwarnings= 23 - ignore:Possible nested set::pycodestyle:113 24 - diff --git a/setup.cfg b/setup.cfg 25 - index 3e7bbed..5cac7a2 100644 26 - --- a/setup.cfg 27 - +++ b/setup.cfg 28 - @@ -29,7 +29,6 @@ setup_requires = setuptools_scm >= 1.15.0 29 - testing = 30 - pytest >= 3.5, !=3.7.3 31 - pytest-checkdocs 32 - - pytest-flake8 33 - docs = 34 - sphinx 35 - jaraco.packaging >= 3.2 36 - -- 37 - 2.18.1 38 -
+6 -8
pkgs/development/python-modules/jaraco_logging/default.nix
··· 1 1 { lib, buildPythonPackage, fetchPypi, setuptools_scm 2 - , tempora, six, pytest 2 + , tempora, six 3 3 }: 4 4 5 5 buildPythonPackage rec { ··· 11 11 sha256 = "31716fe84d3d5df39d95572942513bd4bf8ae0a478f64031eff4c2ea9e83434e"; 12 12 }; 13 13 14 - patches = [ ./0001-Don-t-run-flake8-checks-during-the-build.patch ]; 15 - 16 - buildInputs = [ setuptools_scm ]; 14 + nativeBuildInputs = [ setuptools_scm ]; 17 15 propagatedBuildInputs = [ tempora six ]; 18 - checkInputs = [ pytest ]; 19 16 20 - checkPhase = '' 21 - PYTHONPATH=".:$PYTHONPATH" pytest 22 - ''; 17 + # test no longer packaged with pypi 18 + doCheck = false; 19 + 20 + pythonImportsCheck = [ "jaraco.logging" ]; 23 21 24 22 meta = with lib; { 25 23 description = "Support for Python logging facility";