Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
1.2 kB · 51 lines
Nix
at llvm-cleanup
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152{ lib, buildPythonPackage, fetchFromGitHub, pythonOlder, django, pytestCheckHook, pytest-django, parameterized,}:let # 0.18.12 was yanked from PyPI, it refers to this issue: # https://github.com/deschler/django-modeltranslation/issues/701 version = "0.19.0";inbuildPythonPackage { pname = "django-modeltranslation"; inherit version;
src = fetchFromGitHub { owner = "deschler"; repo = "django-modeltranslation"; rev = "refs/tags/v${version}"; hash = "sha256-Ypz1C+Dx1v61A7LvIsW644qfFjNHQ7KXeKewQ5MAgi0="; };
# Remove all references to pytest-cov postPatch = '' substituteInPlace pytest.ini \ --replace "--no-cov-on-fail" "" \ --replace "--cov-report=\"\"" "" \ --replace "--cov modeltranslation" "" '';
disabled = pythonOlder "3.6";
propagatedBuildInputs = [ django ];
nativeCheckInputs = [ pytestCheckHook pytest-django parameterized ];
meta = with lib; { description = "Translates Django models using a registration approach"; homepage = "https://github.com/deschler/django-modeltranslation"; license = licenses.bsd3; maintainers = with maintainers; [ augustebaum ]; };}