about summary refs log tree commit diff
path: root/pkgs/development/python-modules/pytest-celery/default.nix
blob: 2a6ad34d706ad72f28255dc7e807c9f0797ebb60 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
{ lib, buildPythonPackage, fetchFromGitHub }:

buildPythonPackage rec {
  pname = "pytest-celery";
  version = "0.1.0";

  format = "flit";

  src = fetchFromGitHub {
    owner = "celery";
    repo = "pytest-celery";
    rev = "v${version}";
    hash = "sha256-vzWwkOS3BLOInaFDk+PegvEmC88ZZ1sG1CmHwhn7r9w=";
  };

  postPatch = ''
    # avoid infinite recursion with celery
    substituteInPlace pyproject.toml \
      --replace '"celery >= 4.4.0"' ""
  '';

  # This package has nothing to test or import.
  doCheck = false;

  meta = with lib; {
    description = "Pytest plugin to enable celery.contrib.pytest";
    homepage = "https://github.com/celery/pytest-celery";
    license = licenses.mit;
    maintainers = [ ];
  };
}