Merge pull request #158695 from SuperSandro2000/pytest-celery

This commit is contained in:
Sandro 2022-02-09 18:28:38 +01:00 committed by GitHub
commit b2c910f598
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 18 additions and 18 deletions

View file

@ -1,21 +1,30 @@
{ lib, buildPythonPackage, fetchPypi }: { lib, buildPythonPackage, fetchFromGitHub }:
buildPythonPackage rec { buildPythonPackage rec {
pname = "pytest-celery"; pname = "pytest-celery";
version = "0.0.0"; version = "0.1.0";
src = fetchPypi { format = "flit";
inherit pname version;
sha256 = "cfd060fc32676afa1e4f51b2938f903f7f75d952186b8c6cf631628c4088f406"; src = fetchFromGitHub {
owner = "celery";
repo = "pytest-celery";
rev = "v${version}";
sha256 = "sha256-vzWwkOS3BLOInaFDk+PegvEmC88ZZ1sG1CmHwhn7r9w=";
}; };
patches = [ ./no-celery.patch ]; postPatch = ''
# avoid infinite recursion with celery
substituteInPlace pyproject.toml \
--replace '"celery >= 4.4.0"' ""
'';
doCheck = false; # This package has nothing to test or import. # This package has nothing to test or import.
doCheck = false;
meta = with lib; { meta = with lib; {
description = "pytest plugin for unittest subTest() support and subtests fixture"; description = "Pytest plugin to enable celery.contrib.pytest";
homepage = "https://github.com/pytest-dev/pytest-subtests"; homepage = "https://github.com/celery/pytest-celery";
license = licenses.mit; license = licenses.mit;
maintainers = [ ]; maintainers = [ ];
}; };

View file

@ -1,9 +0,0 @@
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']
+[]