Skip to content

Commit

Permalink
nix: use pyproject
Browse files Browse the repository at this point in the history
  • Loading branch information
mkg20001 committed Sep 25, 2024
1 parent b7320e9 commit f803465
Showing 1 changed file with 13 additions and 8 deletions.
21 changes: 13 additions & 8 deletions default.nix
Original file line number Diff line number Diff line change
@@ -1,18 +1,23 @@
{ lib
, stdenv
, fetchFromGitHub
, python3
{
lib,
python3,
}:

python3.pkgs.buildPythonApplication rec {
name = "hetzner-robot-failover-keepalived";
format = "other";
pyproject = true;

src = ./.;

propagatedBuildInputs = [
python3.pkgs.requests
python3.pkgs.bunch
build-system = [
python3.pkgs.poetry-core
python3.pkgs.setuptools
python3.pkgs.wheel
];

dependencies = with python3.pkgs; [
bunch
requests
];

postPatch = ''
Expand Down

0 comments on commit f803465

Please sign in to comment.