1
0
Fork 0
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-06-22 01:11:02 +03:00
nixpkgs/pkgs/development/python-modules/django-cors-headers/default.nix

40 lines
809 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 = with maintainers; [ ];
};
}