Commit 50b83177 authored by jopejoe1's avatar jopejoe1
Browse files

python3Packages.django-pglock: move out of authentik

parent e1ac4f7d
Loading
Loading
Loading
Loading
+0 −18
Original line number Diff line number Diff line
@@ -110,24 +110,6 @@ let
  python = python312.override {
    self = python;
    packageOverrides = final: prev: {
      django-pglock = prev.buildPythonPackage rec {
        pname = "django-pglock";
        version = "1.5.1";
        src = fetchFromGitHub {
          owner = "Opus10";
          repo = pname;
          rev = version;
          hash = "sha256-ZoEHDkGmrcNiMe/rbwXsEPZo3LD93cZp6zjftMKjLeg=";
        };
        nativeBuildInputs = with prev; [
          poetry-core
        ];
        propagatedBuildInputs = with final; [
          django
          django-pgactivity
        ];
        pyproject = true;
      };
      django-tenants = prev.django-tenants.overrideAttrs {
        version = "3.6.1-unstable-2024-01-11";
        src = fetchFromGitHub {
+38 −0
Original line number Diff line number Diff line
{
  lib,
  buildPythonPackage,
  fetchFromGitHub,
  poetry-core,
  django,
  django-pgactivity,
}:

buildPythonPackage rec {
  pname = "django-pglock";
  version = "1.6.0";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "Opus10";
    repo = "django-pglock";
    rev = "refs/tags/${version}";
    hash = "sha256-KCB00W3sUyEERgK/DfDPl051uFkc0IRdbOJusUVs5SA=";
  };

  build-system = [ poetry-core ];

  dependencies = [
    django
    django-pgactivity
  ];

  pythonImportsCheck = [ "pglock" ];

  meta = {
    description = "Postgres advisory locks, table locks, and blocking lock management";
    homepage = "https://github.com/Opus10/django-pglock";
    changelog = "https://github.com/Opus10/django-pglock/blob/${version}/CHANGELOG.md";
    license = lib.licenses.bsd3;
    maintainers = with lib.maintainers; [ jopejoe1 ];
  };
}
+2 −0
Original line number Diff line number Diff line
@@ -3415,6 +3415,8 @@ self: super: with self; {
  django-pgactivity = callPackage ../development/python-modules/django-pgactivity { };
  django-pglock = callPackage ../development/python-modules/django-pglock { };
  django-pglocks = callPackage ../development/python-modules/django-pglocks { };
  django-phonenumber-field = callPackage ../development/python-modules/django-phonenumber-field { };