git.iko.soy/typeable/nixpkgs
on master help sign in
python39Packages.pytest-celery: switch to correct versioned github tarball
commit6b9adcbbe1a5cf12e1d115092fe8282d8a4fc0bd authorSandro Jäckel <sandro.jaeckel@gmail.com> dateTue 8 Feb 2022, 20:20 (5 years ago) parent829942f
2 files changed+18−18
pkgs/development/python-modules/pytest-celery/default.nix+18−9 pkgs/development/python-modules/pytest-celery/no-celery.patch−9
pkgs/development/python-modules/pytest-celery/default.nix+18−9
@@ -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 };
pkgs/development/python-modules/pytest-celery/no-celery.patchdeleted−9
@@ -1,9 +0,0 @@
1−This plugin is needed to test celery itself, so it can't depend on celery.
2−
3−--- a/setup.py
4−+++ b/setup.py
5−@@ -6,3 +6,3 @@ from distutils.core import setup
6− install_requires = \
7−-['celery >= 4.4.0']
8−+[]
9−