Files
nixpkgs/pkgs/development/python-modules/entrance/default.nix
T
Martin Weinelt fff6e6a87b python3Packages.entrance: 1.1.20 -> 1.1.21
This commit was automatically generated using update-python-libraries.
2026-02-01 16:43:43 +01:00

68 lines
1.3 KiB
Nix

{
lib,
fetchPypi,
buildPythonPackage,
routerFeatures,
setuptools,
janus,
ncclient,
paramiko,
pyyaml,
sanic,
}:
let
# The `routerFeatures` flag optionally brings in some somewhat heavy
# dependencies, in order to enable interacting with routers
opts =
if routerFeatures then
{
prePatch = ''
substituteInPlace ./setup.py --replace-fail "extra_deps = []" "extra_deps = router_feature_deps"
'';
extraBuildInputs = [
janus
ncclient
paramiko
];
}
else
{
prePatch = "";
extraBuildInputs = [ ];
};
in
buildPythonPackage rec {
pname = "entrance";
version = "1.1.21";
pyproject = true;
src = fetchPypi {
inherit pname version;
hash = "sha256-1rKQPIhnVVtM93K3Ppg+m4/L4k0YD+mcE9bZhDmfmbo=";
};
# The versions of `sanic` and `websockets` in nixpkgs only support 3.6 or later
# No useful tests
doCheck = false;
build-system = [ setuptools ];
dependencies = [
pyyaml
sanic
]
++ opts.extraBuildInputs;
prePatch = opts.prePatch;
meta = {
description = "Server framework for web apps with an Elm frontend";
homepage = "https://github.com/ensoft/entrance";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ simonchatts ];
};
}