16 # The `routerFeatures` flag optionally brings in some somewhat heavy
17 # dependencies, in order to enable interacting with routers
19 if routerFeatures then
22 substituteInPlace ./setup.py --replace-fail "extra_deps = []" "extra_deps = router_feature_deps"
33 extraBuildInputs = [ ];
37 buildPythonPackage rec {
43 inherit pname version;
44 hash = "sha256-PvsP6HXCllW102h3o7abz9uC2AZTwvg5qIqP+rdkk6Y=";
47 # The versions of `sanic` and `websockets` in nixpkgs only support 3.6 or later
48 disabled = pythonOlder "3.6";
53 build-system = [ setuptools ];
58 ] ++ opts.extraBuildInputs;
60 prePatch = opts.prePatch;
63 description = "Server framework for web apps with an Elm frontend";
64 homepage = "https://github.com/ensoft/entrance";
65 license = licenses.mit;
66 maintainers = with maintainers; [ simonchatts ];