1{ 2 lib, 3 buildPythonPackage, 4 django-stubs, 5 django, 6 fetchFromGitHub, 7 parameterized, 8 pytest-cov-stub, 9 pytest-django, 10 pytestCheckHook, 11 pythonOlder, 12 hatchling, 13 hatch-vcs, 14}: 15 16buildPythonPackage rec { 17 pname = "django-modeltranslation"; 18 version = "0.19.17"; 19 pyproject = true; 20 21 disabled = pythonOlder "3.11"; 22 23 src = fetchFromGitHub { 24 owner = "deschler"; 25 repo = "django-modeltranslation"; 26 tag = "v${version}"; 27 hash = "sha256-SaCuo/vnH7fDZnOZvrV3HbLtq6q2bTzhPvBCdrzukoA="; 28 }; 29 30 build-system = [ 31 hatchling 32 hatch-vcs 33 ]; 34 35 dependencies = [ django ]; 36 37 nativeCheckInputs = [ 38 django-stubs 39 pytestCheckHook 40 pytest-cov-stub 41 pytest-django 42 parameterized 43 ]; 44 45 pythonImportsCheck = [ "modeltranslation" ]; 46 47 meta = { 48 description = "Translates Django models using a registration approach"; 49 homepage = "https://github.com/deschler/django-modeltranslation"; 50 changelog = "https://github.com/deschler/django-modeltranslation/blob/v${src.tag}/CHANGELOG.md"; 51 license = lib.licenses.bsd3; 52 maintainers = with lib.maintainers; [ augustebaum ]; 53 }; 54}