2023-03-30 22:05:00 +00:00
|
|
|
{ buildPythonPackage
|
|
|
|
, callPackage
|
2023-10-19 13:55:26 +00:00
|
|
|
, factory-boy
|
2023-03-30 22:05:00 +00:00
|
|
|
, fetchFromGitHub
|
|
|
|
, lib
|
|
|
|
, wagtail
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "wagtail-factories";
|
2023-07-15 17:15:38 +00:00
|
|
|
version = "4.1.0";
|
2024-01-02 11:29:13 +00:00
|
|
|
format = "setuptools";
|
2023-03-30 22:05:00 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
repo = pname;
|
|
|
|
owner = "wagtail";
|
2023-07-15 17:15:38 +00:00
|
|
|
rev = "refs/tags/v${version}";
|
|
|
|
sha256 = "sha256-xNLHJ/8IZt3pzHAzr9swcL6GcIQyIjIFfoeHUW1i76U=";
|
2023-03-30 22:05:00 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
2023-10-19 13:55:26 +00:00
|
|
|
factory-boy
|
2023-03-30 22:05:00 +00:00
|
|
|
wagtail
|
|
|
|
];
|
|
|
|
|
|
|
|
# Tests require wagtail which in turn requires wagtail-factories
|
|
|
|
# Note that pythonImportsCheck is not used because it requires a Django app
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
passthru.tests.wagtail-factories = callPackage ./tests.nix { };
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Factory boy classes for wagtail";
|
|
|
|
homepage = "https://github.com/wagtail/wagtail-factories";
|
|
|
|
changelog = "https://github.com/wagtail/wagtail-factories/blob/${version}/CHANGES";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ sephi ];
|
|
|
|
};
|
|
|
|
}
|