evcc: 0.131.4 -> 0.131.5
[NixPkgs.git] / pkgs / development / python-modules / wagtail-modeladmin / default.nix
blob2f3988e0af41a0a99cd2a54e7248c8ed1bc41ff2
2   lib,
3   buildPythonPackage,
4   dj-database-url,
5   fetchFromGitHub,
6   flit-core,
7   python,
8   pythonOlder,
9   wagtail,
12 buildPythonPackage rec {
13   pname = "wagtail-modeladmin";
14   version = "2.1.0";
15   pyproject = true;
17   disabled = pythonOlder "3.8";
19   src = fetchFromGitHub {
20     repo = pname;
21     owner = "wagtail-nest";
22     rev = "refs/tags/v${version}";
23     hash = "sha256-IG7e7YomMM7K2IlJ1Dr1zo+blDPHnu/JeS5csos8ncc=";
24   };
26   nativeBuildInputs = [ flit-core ];
28   propagatedBuildInputs = [ wagtail ];
30   nativeCheckInputs = [ dj-database-url ];
32   pythonImportsCheck = [ "wagtail_modeladmin" ];
34   checkPhase = ''
35     runHook preCheck
36     ${python.interpreter} testmanage.py test
37     runHook postCheck
38   '';
40   meta = with lib; {
41     description = "Add any model in your project to the Wagtail admin. Formerly wagtail.contrib.modeladmin";
42     homepage = "https://github.com/wagtail-nest/wagtail-modeladmin";
43     changelog = "https://github.com/wagtail/wagtail-modeladmin/blob/v${version}/CHANGELOG.md";
44     license = licenses.bsd3;
45     maintainers = with maintainers; [ sephi ];
46   };