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