depot/third_party/nixpkgs/pkgs/development/python-modules/django-celery-results/default.nix
Default email 5e9e1146e1 Project import generated by Copybara.
GitOrigin-RevId: 18036c0be90f4e308ae3ebcab0e14aae0336fe42
2023-08-05 00:07:22 +02:00

41 lines
826 B
Nix

{ lib
, fetchPypi
, buildPythonPackage
, celery
, django
, pythonOlder
}:
buildPythonPackage rec {
pname = "django-celery-results";
version = "2.4.0";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchPypi {
pname = "django_celery_results";
inherit version;
hash = "sha256-dapRlw21aRy/JCxqD/UMjN9BniZc0Om3cjNdBkNsS5k=";
};
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";
license = licenses.bsd3;
maintainers = with maintainers; [ babariviere ];
};
}