2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
buildPythonPackage,
|
|
|
|
callPackage,
|
|
|
|
factory-boy,
|
|
|
|
fetchFromGitHub,
|
|
|
|
lib,
|
|
|
|
wagtail,
|
2023-03-30 22:05:00 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "wagtail-factories";
|
2024-06-05 15:53:02 +00:00
|
|
|
version = "4.2.1";
|
2024-01-02 11:29:13 +00:00
|
|
|
format = "setuptools";
|
2023-03-30 22:05:00 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
repo = pname;
|
|
|
|
owner = "wagtail";
|
2024-06-05 15:53:02 +00:00
|
|
|
rev = "refs/tags/${version}";
|
|
|
|
sha256 = "sha256-jo8VwrmxHBJnORmuR6eTLrf/eupNL2vhXcw81EzfTxM=";
|
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 ];
|
|
|
|
};
|
|
|
|
}
|