Skip to content

Commit

Permalink
Merge pull request #325598 from erictapen/python-django-cors-headers
Browse files Browse the repository at this point in the history
python3Packages.django-cors-headers: 3.13.0 -> 4.4.0
  • Loading branch information
mweinelt authored Jul 9, 2024
2 parents f808696 + d2925a6 commit a630e7a
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions pkgs/development/python-modules/django-cors-headers/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,30 +2,35 @@
lib,
fetchFromGitHub,
buildPythonPackage,
setuptools,
django,
pytest-django,
pytestCheckHook,
}:

buildPythonPackage rec {
pname = "django-cors-headers";
version = "3.13.0";
format = "setuptools";
version = "4.4.0";
pyproject = true;

src = fetchFromGitHub {
owner = "adamchainz";
repo = "django-cors-headers";
repo = pname;
rev = version;
hash = "sha256-pIyf4poW8/slxj4PVvmXpuYp//v5w00yU0Vz6Jiy2yM=";
hash = "sha256-/uTQ09zIjRV1Ilb/mXyr4zn5tJI/mNFHpfql2ptuER4=";
};

propagatedBuildInputs = [ django ];
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";
Expand Down

0 comments on commit a630e7a

Please sign in to comment.