Unverified Commit 2a2e8b66 authored by Martin Weinelt's avatar Martin Weinelt
Browse files

python310Packages.django-mysql: init at 4.9.0

parent 5e524c51
Loading
Loading
Loading
Loading
+54 −0
Original line number Diff line number Diff line
{ lib
, buildPythonPackage
, fetchFromGitHub

# build-system
, setuptools

# dependencies
, django
, mysqlclient

# tests
, pytest-django
, pytestCheckHook
}:

buildPythonPackage rec {
  pname = "django-mysql";
  version = "4.9.0";
  format = "pyproject";

  src = fetchFromGitHub {
    owner = "adamchainz";
    repo = "django-mysql";
    rev = "refs/tags/${version}";
    hash = "sha256-mXAdwNqSIrWMh+YcCjksiqmkLSXGAd+ofyzJmiG+gNo=";
  };

  nativeBuildInputs = [
    setuptools
  ];

  buildInputs = [
    django
    mysqlclient
  ];

  doCheck = false; # requires mysql/mariadb server

  env.DJANGO_SETTINGS_MODULE = "tests.settings";

  nativeCheckInputs = [
    pytest-django
    pytestCheckHook
  ];

  meta = with lib; {
    changelog = "https://django-mysql.readthedocs.io/en/latest/changelog.html";
    description = "Extensions to Django for use with MySQL/MariaD";
    homepage = "https://github.com/adamchainz/django-mysql";
    license = licenses.mit;
    maintainers = with maintainers; [ hexa ];
  };
}
+2 −0
Original line number Diff line number Diff line
@@ -2703,6 +2703,8 @@ self: super: with self; {

  django-mptt = callPackage ../development/python-modules/django-mptt { };

  django-mysql = callPackage ../development/python-modules/django-mysql { };

  django_nose = callPackage ../development/python-modules/django_nose { };

  django-oauth-toolkit = callPackage ../development/python-modules/django-oauth-toolkit { };