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