Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 pythonOlder, 6 django, 7 django-stubs, 8 pytestCheckHook, 9 pytest-cov-stub, 10 pytest-django, 11 parameterized, 12}: 13let 14 # 0.18.12 was yanked from PyPI, it refers to this issue: 15 # https://github.com/deschler/django-modeltranslation/issues/701 16 version = "0.19.11"; 17in 18buildPythonPackage { 19 pname = "django-modeltranslation"; 20 inherit version; 21 22 src = fetchFromGitHub { 23 owner = "deschler"; 24 repo = "django-modeltranslation"; 25 rev = "refs/tags/v${version}"; 26 hash = "sha256-J/D0rHhxJMpOSGu9LQ6tPKnjBZhqTX6I5YcSkx5+qXk="; 27 }; 28 29 disabled = pythonOlder "3.6"; 30 31 propagatedBuildInputs = [ django ]; 32 33 nativeCheckInputs = [ 34 django-stubs 35 pytestCheckHook 36 pytest-cov-stub 37 pytest-django 38 parameterized 39 ]; 40 41 meta = with lib; { 42 description = "Translates Django models using a registration approach"; 43 homepage = "https://github.com/deschler/django-modeltranslation"; 44 license = licenses.bsd3; 45 maintainers = with maintainers; [ augustebaum ]; 46 }; 47}