python310Packages.django-mysql: init at 4.9.0
This commit is contained in:
parent
5e524c5150
commit
2a2e8b663c
54
pkgs/development/python-modules/django-mysql/default.nix
Normal file
54
pkgs/development/python-modules/django-mysql/default.nix
Normal file
@ -0,0 +1,54 @@
|
||||
{ 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 ];
|
||||
};
|
||||
}
|
@ -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 { };
|
||||
|
Loading…
Reference in New Issue
Block a user