Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
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 setuptools, 13}: 14 15buildPythonPackage rec { 16 pname = "django-modeltranslation"; 17 version = "0.19.16"; 18 pyproject = true; 19 20 disabled = pythonOlder "3.11"; 21 22 src = fetchFromGitHub { 23 owner = "deschler"; 24 repo = "django-modeltranslation"; 25 tag = "v${version}"; 26 hash = "sha256-8A5fIZuUMlXe8bHQR0Ha5HoT9VIQsgqpJVMONB5KqCI="; 27 }; 28 29 build-system = [ setuptools ]; 30 31 dependencies = [ django ]; 32 33 nativeCheckInputs = [ 34 django-stubs 35 pytestCheckHook 36 pytest-cov-stub 37 pytest-django 38 parameterized 39 ]; 40 41 pythonImportsCheck = [ "modeltranslation" ]; 42 43 meta = with lib; { 44 description = "Translates Django models using a registration approach"; 45 homepage = "https://github.com/deschler/django-modeltranslation"; 46 changelog = "https://github.com/deschler/django-modeltranslation/blob/v${src.tag}/CHANGELOG.md"; 47 license = licenses.bsd3; 48 maintainers = with maintainers; [ augustebaum ]; 49 }; 50}