tangled
alpha
login
or
join now
tjh.dev
/
nixpkgs
Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
0
fork
atom
overview
issues
pulls
pipelines
pythonPackages.entrance: init at 1.1.10
Simon Chatterjee
6 years ago
dfb57552
8d00c489
+49
2 changed files
expand all
collapse all
unified
split
pkgs
development
python-modules
entrance
default.nix
top-level
python-packages.nix
+45
pkgs/development/python-modules/entrance/default.nix
···
1
1
+
{ lib, fetchPypi, buildPythonPackage, pythonOlder, routerFeatures
2
2
+
, janus, ncclient, paramiko, pyyaml, sanic }:
3
3
+
4
4
+
let
5
5
+
# The `routerFeatures` flag optionally brings in some somewhat heavy
6
6
+
# dependencies, in order to enable interacting with routers
7
7
+
opts = if routerFeatures then {
8
8
+
prePatch = ''
9
9
+
substituteInPlace ./setup.py --replace "extra_deps = []" "extra_deps = router_feature_deps"
10
10
+
'';
11
11
+
extraBuildInputs = [ janus ncclient paramiko ];
12
12
+
} else {
13
13
+
prePatch = "";
14
14
+
extraBuildInputs = [];
15
15
+
};
16
16
+
17
17
+
in
18
18
+
19
19
+
buildPythonPackage rec {
20
20
+
pname = "entrance";
21
21
+
version = "1.1.10";
22
22
+
23
23
+
src = fetchPypi {
24
24
+
inherit pname version;
25
25
+
sha256 = "080qkvkmfw4004cl721l5bvpg001xz8vs6q59dg797kqxfrwk5kw";
26
26
+
};
27
27
+
28
28
+
# The versions of `sanic` and `websockets` in nixpkgs only support 3.6 or later
29
29
+
disabled = pythonOlder "3.6";
30
30
+
31
31
+
# No useful tests
32
32
+
doCheck = false;
33
33
+
34
34
+
propagatedBuildInputs = [ pyyaml sanic ] ++ opts.extraBuildInputs;
35
35
+
36
36
+
prePatch = opts.prePatch;
37
37
+
38
38
+
meta = with lib; {
39
39
+
description = "A server framework for web apps with an Elm frontend";
40
40
+
homepage = https://github.com/ensoft/entrance;
41
41
+
license = licenses.mit;
42
42
+
maintainers = with maintainers; [ simonchatts ];
43
43
+
};
44
44
+
}
45
45
+
+4
pkgs/top-level/python-packages.nix
···
563
563
564
564
diff-match-patch = callPackage ../development/python-modules/diff-match-patch { };
565
565
566
566
+
entrance = callPackage ../development/python-modules/entrance { routerFeatures = false; };
567
567
+
568
568
+
entrance-with-router-features = callPackage ../development/python-modules/entrance { routerFeatures = true; };
569
569
+
566
570
eradicate = callPackage ../development/python-modules/eradicate { };
567
571
568
572
face = callPackage ../development/python-modules/face { };