1 { lib, fetchPypi, buildPythonPackage, pythonOlder, routerFeatures
2 , janus, ncclient, paramiko, pyyaml, sanic }:
5 # The `routerFeatures` flag optionally brings in some somewhat heavy
6 # dependencies, in order to enable interacting with routers
7 opts = if routerFeatures then {
9 substituteInPlace ./setup.py --replace "extra_deps = []" "extra_deps = router_feature_deps"
11 extraBuildInputs = [ janus ncclient paramiko ];
14 extraBuildInputs = [];
19 buildPythonPackage rec {
24 inherit pname version;
25 sha256 = "5b354ecf03226edae567511c8a8db95038cc9c3da20fcfcf5546d1e197eb3aef";
28 # The versions of `sanic` and `websockets` in nixpkgs only support 3.6 or later
29 disabled = pythonOlder "3.6";
34 propagatedBuildInputs = [ pyyaml sanic ] ++ opts.extraBuildInputs;
36 prePatch = opts.prePatch;
39 description = "A server framework for web apps with an Elm frontend";
40 homepage = "https://github.com/ensoft/entrance";
41 license = licenses.mit;
42 maintainers = with maintainers; [ simonchatts ];