1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 hatchling, 6 django, 7 django-extensions, 8 pytest-django, 9 pytestCheckHook, 10 mock, 11 mock-django, 12 django-autoslug, 13}: 14 15buildPythonPackage rec { 16 pname = "django-organizations"; 17 version = "2.5.0"; 18 pyproject = true; 19 20 src = fetchFromGitHub { 21 owner = "bennylope"; 22 repo = "django-organizations"; 23 tag = version; 24 hash = "sha256-lgri6CCITp1oYCwpH8vrUglphXOmwZ3KX5G/L29akrs="; 25 }; 26 27 build-system = [ hatchling ]; 28 29 dependencies = [ 30 django 31 django-extensions 32 ]; 33 34 nativeCheckInputs = [ 35 pytest-django 36 pytestCheckHook 37 mock 38 mock-django 39 django-autoslug 40 ]; 41 42 pythonImportsCheck = [ "organizations" ]; 43 44 meta = { 45 description = "Multi-user accounts for Django projects"; 46 homepage = "https://github.com/bennylope/django-organizations"; 47 changelog = "https://github.com/bennylope/django-organizations/blob/${version}/HISTORY.rst"; 48 license = lib.licenses.bsd2; 49 maintainers = with lib.maintainers; [ defelo ]; 50 }; 51}