pythonPackages.pytest-celery: init at 0.0.0a1

This commit is contained in:
Orivej Desh 2020-12-07 10:51:58 +00:00
parent 95f108391d
commit abf8d39026
3 changed files with 32 additions and 0 deletions

View file

@ -0,0 +1,21 @@
{ stdenv, buildPythonPackage, fetchPypi, pytest, setuptools_scm }:
buildPythonPackage rec {
pname = "pytest-celery";
version = "0.0.0a1";
src = fetchPypi {
inherit pname version;
sha256 = "0qifwi7q8dfwbzz2vm5m40lw23qh2fzibngbmw6qgwnkq8bhh3iy";
};
patches = [ ./no-celery.patch ];
doCheck = false; # This package has nothing to test or import.
meta = with stdenv.lib; {
description = "pytest plugin for unittest subTest() support and subtests fixture";
homepage = "https://github.com/pytest-dev/pytest-subtests";
license = licenses.mit;
};
}

View file

@ -0,0 +1,9 @@
This plugin is needed to test celery itself, so it can't depend on celery.
--- a/setup.py
+++ b/setup.py
@@ -6,3 +6,3 @@ from distutils.core import setup
install_requires = \
-['celery >= 4.4.0']
+[]

View file

@ -5708,6 +5708,8 @@ in {
pytest-catchlog = callPackage ../development/python-modules/pytest-catchlog { };
pytest-celery = callPackage ../development/python-modules/pytest-celery { };
pytest-check = callPackage ../development/python-modules/pytest-check { };
pytest-click = callPackage ../development/python-modules/pytest-click { };