depot/third_party/nixpkgs/pkgs/development/python-modules/django-celery-results/default.nix
Default email 5e7c2d6cef Project import generated by Copybara.
GitOrigin-RevId: f99e5f03cc0aa231ab5950a15ed02afec45ed51a
2023-10-09 21:29:22 +02:00

42 lines
919 B
Nix

{ lib
, fetchPypi
, buildPythonPackage
, celery
, django
, pythonOlder
}:
buildPythonPackage rec {
pname = "django-celery-results";
version = "2.5.1";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchPypi {
pname = "django_celery_results";
inherit version;
hash = "sha256-PstxR/dz800DgbrGJGM3zkz4ii6nuCd07UjlGLZ7uP0=";
};
postPatch = ''
# Drop malformatted tests_require specification
sed -i '/tests_require=/d' setup.py
'';
propagatedBuildInputs = [
celery
django
];
# Tests need access to a database.
doCheck = false;
meta = with lib; {
description = "Celery result back end with django";
homepage = "https://github.com/celery/django-celery-results";
changelog = "https://github.com/celery/django-celery-results/blob/v{version}/Changelog";
license = licenses.bsd3;
maintainers = with maintainers; [ babariviere ];
};
}