diff options
| author | Robert Schütz <mail@dotlambda.de> | 2024-07-22 03:49:40 -0700 |
|---|---|---|
| committer | Robert Schütz <mail@dotlambda.de> | 2024-07-22 03:49:40 -0700 |
| commit | dacc5790c45790fac3ac1060131b285d6b3aa340 (patch) | |
| tree | 87bd7dfda0a916193eb36291564976255cde415f | |
| parent | Merge pull request #329092 from r-ryantm/auto-update/vcmi (diff) | |
| download | nixpkgs-dacc5790c45790fac3ac1060131b285d6b3aa340.tar.gz | |
vwsfriend: init at 0.24.4
| -rw-r--r-- | pkgs/by-name/vw/vwsfriend/package.nix | 63 |
1 files changed, 63 insertions, 0 deletions
diff --git a/pkgs/by-name/vw/vwsfriend/package.nix b/pkgs/by-name/vw/vwsfriend/package.nix new file mode 100644 index 000000000000..42b65fd876a1 --- /dev/null +++ b/pkgs/by-name/vw/vwsfriend/package.nix @@ -0,0 +1,63 @@ +{ + lib, + python3, + fetchFromGitHub, +}: + +python3.pkgs.buildPythonApplication rec { + pname = "vwsfriend"; + version = "0.24.4"; + pyproject = true; + + src = fetchFromGitHub { + owner = "tillsteinbach"; + repo = "VWsFriend"; + rev = "refs/tags/v${version}"; + hash = "sha256-tt71J+UAIgYY/ac3ZyNDVTrnRvaKU+5WXVe///Hyv2U="; + }; + + sourceRoot = "${src.name}/vwsfriend"; + + postPatch = '' + # we don't need pytest-runner, pylint, etc. + true > setup_requirements.txt + + substituteInPlace requirements.txt \ + --replace-fail psycopg2-binary psycopg2 + ''; + + build-system = with python3.pkgs; [ setuptools ]; + + pythonRelaxDeps = true; + + dependencies = + with python3.pkgs; + [ + weconnect + hap-python + pypng + sqlalchemy + psycopg2 + requests + werkzeug + flask + flask-login + flask-caching + wtforms + flask-wtf + flask-sqlalchemy + alembic + haversine + ] + ++ weconnect.optional-dependencies.Images + ++ hap-python.optional-dependencies.QRCode; + + meta = { + changelog = "https://github.com/tillsteinbach/VWsFriend/blob/${src.rev}/CHANGELOG.md"; + description = "VW WeConnect visualization and control"; + homepage = "https://github.com/tillsteinbach/VWsFriend"; + license = lib.licenses.mit; + mainProgram = "vwsfriend"; + maintainers = with lib.maintainers; [ dotlambda ]; + }; +} |
