@@ -1,21 +1,30 @@
1−{ lib, buildPythonPackage, fetchPypi }:
1+{ lib, buildPythonPackage, fetchFromGitHub }:
22
33buildPythonPackage rec {
44 pname = "pytest-celery";
5− version = "0.0.0";
5+ version = "0.1.0";
66
7− src = fetchPypi {
8− inherit pname version;
9− sha256 = "cfd060fc32676afa1e4f51b2938f903f7f75d952186b8c6cf631628c4088f406";
7+ format = "flit";
8+
9+ src = fetchFromGitHub {
10+ owner = "celery";
11+ repo = "pytest-celery";
12+ rev = "v${version}";
13+ sha256 = "sha256-vzWwkOS3BLOInaFDk+PegvEmC88ZZ1sG1CmHwhn7r9w=";
1014 };
1115
12− patches = [ ./no-celery.patch ];
16+ postPatch = ''
17+ # avoid infinite recursion with celery
18+ substituteInPlace pyproject.toml \
19+ --replace '"celery >= 4.4.0"' ""
20+ '';
1321
14− doCheck = false; # This package has nothing to test or import.
22+ # This package has nothing to test or import.
23+ doCheck = false;
1524
1625 meta = with lib; {
17− description = "pytest plugin for unittest subTest() support and subtests fixture";
18− homepage = "https://github.com/pytest-dev/pytest-subtests";
26+ description = "Pytest plugin to enable celery.contrib.pytest";
27+ homepage = "https://github.com/celery/pytest-celery";
1928 license = licenses.mit;
2029 maintainers = [ ];
2130 };