Unverified Commit e27a0fb0 authored by Fabian Affolter's avatar Fabian Affolter Committed by GitHub
Browse files

python312Packages.django-cors-headers: 4.4.0 -> 4.6.0 (#373985)

parents fd5197d9 d24593e0
Loading
Loading
Loading
Loading
+15 −7
Original line number Diff line number Diff line
{
  lib,
  fetchFromGitHub,
  asgiref,
  buildPythonPackage,
  setuptools,
  django,
  fetchFromGitHub,
  pytest-django,
  pytestCheckHook,
  pythonOlder,
  setuptools,
}:

buildPythonPackage rec {
  pname = "django-cors-headers";
  version = "4.4.0";
  version = "4.6.0";
  pyproject = true;

  disabled = pythonOlder "3.9";

  src = fetchFromGitHub {
    owner = "adamchainz";
    repo = pname;
    rev = version;
    hash = "sha256-/uTQ09zIjRV1Ilb/mXyr4zn5tJI/mNFHpfql2ptuER4=";
    repo = "django-cors-headers";
    tag = version;
    hash = "sha256-Dvsuj+U1YFC9jT5qkh2h1aL71JkRsAyXW4rxhLzEbOw=";
  };

  build-system = [ setuptools ];

  dependencies = [ django ];
  dependencies = [
    asgiref
    django
  ];

  nativeCheckInputs = [
    pytest-django
@@ -34,6 +41,7 @@ buildPythonPackage rec {
  meta = with lib; {
    description = "Django app for handling server Cross-Origin Resource Sharing (CORS) headers";
    homepage = "https://github.com/OttoYiu/django-cors-headers";
    changelog = "https://github.com/adamchainz/django-cors-headers/blob/${version}/CHANGELOG.rst";
    license = licenses.mit;
    maintainers = [ ];
  };
+11 −5
Original line number Diff line number Diff line
{
  lib,
  buildPythonPackage,
  django,
  fetchFromGitHub,
  setuptools,
  wheel,
  netaddr,
  netbox,
  pillow,
  qrcode,
  netbox,
  setuptools,
}:

buildPythonPackage rec {
  pname = "netbox-qrcode";
  version = "0.0.15";
@@ -16,7 +18,7 @@ buildPythonPackage rec {
  src = fetchFromGitHub {
    owner = "netbox-community";
    repo = "netbox-qrcode";
    rev = "v${version}";
    tag = "v${version}";
    hash = "sha256-gEBOjmX7dcLjiy0u6raAtAaqZUVYsPz3YhupjRRqVDE=";
  };

@@ -27,7 +29,11 @@ buildPythonPackage rec {
    pillow
  ];

  nativeCheckInputs = [ netbox ];
  nativeCheckInputs = [
    django
    netaddr
    netbox
  ];

  preFixup = ''
    export PYTHONPATH=${netbox}/opt/netbox/netbox:$PYTHONPATH