Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4 5# build-system 6, setuptools 7 8# dependencies 9, django 10, mysqlclient 11 12# tests 13, pytest-django 14, pytestCheckHook 15}: 16 17buildPythonPackage rec { 18 pname = "django-mysql"; 19 version = "4.9.0"; 20 format = "pyproject"; 21 22 src = fetchFromGitHub { 23 owner = "adamchainz"; 24 repo = "django-mysql"; 25 rev = "refs/tags/${version}"; 26 hash = "sha256-mXAdwNqSIrWMh+YcCjksiqmkLSXGAd+ofyzJmiG+gNo="; 27 }; 28 29 nativeBuildInputs = [ 30 setuptools 31 ]; 32 33 buildInputs = [ 34 django 35 mysqlclient 36 ]; 37 38 doCheck = false; # requires mysql/mariadb server 39 40 env.DJANGO_SETTINGS_MODULE = "tests.settings"; 41 42 nativeCheckInputs = [ 43 pytest-django 44 pytestCheckHook 45 ]; 46 47 meta = with lib; { 48 changelog = "https://django-mysql.readthedocs.io/en/latest/changelog.html"; 49 description = "Extensions to Django for use with MySQL/MariaD"; 50 homepage = "https://github.com/adamchainz/django-mysql"; 51 license = licenses.mit; 52 maintainers = with maintainers; [ hexa ]; 53 }; 54}