depot/third_party/nixpkgs/pkgs/development/python-modules/django-modeltranslation/default.nix
Default email 159e378cbb Project import generated by Copybara.
GitOrigin-RevId: c04d5652cfa9742b1d519688f65d1bbccea9eb7e
2024-09-19 17:19:46 +03:00

47 lines
1 KiB
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
pythonOlder,
django,
django-stubs,
pytestCheckHook,
pytest-cov-stub,
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.9";
in
buildPythonPackage {
pname = "django-modeltranslation";
inherit version;
src = fetchFromGitHub {
owner = "deschler";
repo = "django-modeltranslation";
rev = "refs/tags/v${version}";
hash = "sha256-2GTz+niXfEsi++KyL6+HtwdzO1YFhpKQsDK3F8GAl4A=";
};
disabled = pythonOlder "3.6";
propagatedBuildInputs = [ django ];
nativeCheckInputs = [
django-stubs
pytestCheckHook
pytest-cov-stub
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 ];
};
}