1{ buildPythonPackage
2, callPackage
3, factory-boy
4, fetchFromGitHub
5, lib
6, wagtail
7}:
8
9buildPythonPackage rec {
10 pname = "wagtail-factories";
11 version = "4.1.0";
12
13 src = fetchFromGitHub {
14 repo = pname;
15 owner = "wagtail";
16 rev = "refs/tags/v${version}";
17 sha256 = "sha256-xNLHJ/8IZt3pzHAzr9swcL6GcIQyIjIFfoeHUW1i76U=";
18 };
19
20 propagatedBuildInputs = [
21 factory-boy
22 wagtail
23 ];
24
25 # Tests require wagtail which in turn requires wagtail-factories
26 # Note that pythonImportsCheck is not used because it requires a Django app
27 doCheck = false;
28
29 passthru.tests.wagtail-factories = callPackage ./tests.nix { };
30
31 meta = with lib; {
32 description = "Factory boy classes for wagtail";
33 homepage = "https://github.com/wagtail/wagtail-factories";
34 changelog = "https://github.com/wagtail/wagtail-factories/blob/${version}/CHANGES";
35 license = licenses.mit;
36 maintainers = with maintainers; [ sephi ];
37 };
38}