Files
nixpkgs/pkgs/development/python-modules/django-cors-headers/default.nix
Jörg Thalheim 5356420466 treewide: remove unused with statements from maintainer lists
$ find -type f -name '*.nix' -print0 | xargs -P "$(nproc)" -0 sed -i \
  -e 's!with lib.maintainers; \[ *\];![ ];!' \
  -e 's!with maintainers; \[ *\];![ ];!'
2024-07-29 10:06:20 +08:00

41 lines
791 B
Nix

{
lib,
fetchFromGitHub,
buildPythonPackage,
setuptools,
django,
pytest-django,
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "django-cors-headers";
version = "4.4.0";
pyproject = true;
src = fetchFromGitHub {
owner = "adamchainz";
repo = pname;
rev = version;
hash = "sha256-/uTQ09zIjRV1Ilb/mXyr4zn5tJI/mNFHpfql2ptuER4=";
};
build-system = [ setuptools ];
dependencies = [ django ];
nativeCheckInputs = [
pytest-django
pytestCheckHook
];
pythonImportsCheck = [ "corsheaders" ];
meta = with lib; {
description = "Django app for handling server Cross-Origin Resource Sharing (CORS) headers";
homepage = "https://github.com/OttoYiu/django-cors-headers";
license = licenses.mit;
maintainers = [ ];
};
}