Merge pull request #307098 from r-ryantm/auto-update/cilium-cli
[NixPkgs.git] / pkgs / development / python-modules / django-parler / default.nix
blob3afaa8ae262c64693d832ca0daba258d8ea53164
1 { lib
2 , buildPythonPackage
3 , django
4 , fetchFromGitHub
5 , pytest
6 , pytest-django
7 , pythonOlder
8 , python
9 }:
11 buildPythonPackage rec {
12   pname = "django-parler";
13   version = "2.3";
14   format = "setuptools";
16   disabled = pythonOlder "3.7";
18   src = fetchFromGitHub {
19     owner = "django-parler";
20     repo = "django-parler";
21     rev = "refs/tags/v${version}";
22     hash = "sha256-tRGifFPCXF3aa3PQWKw3tl1H1TY+lgcChUP1VdwG1cE=";
23   };
25   propagatedBuildInputs = [
26     django
27   ];
29   checkPhase = ''
30     runHook preCheck
31     ${python.interpreter} runtests.py
32     runHook postCheck
33   '';
35   meta = with lib; {
36     description = "Simple Django model translations without nasty hacks";
37     homepage = "https://github.com/django-parler/django-parler";
38     changelog = "https://github.com/django-parler/django-parler/releases/tag/v${version}";
39     license = licenses.asl20;
40     maintainers = with maintainers; [ derdennisop ];
41   };