From f802c10a3c9500029b6d12e2c07a732cc2662c9b Mon Sep 17 00:00:00 2001 From: "D. Moonfire" Date: Sun, 5 Nov 2023 11:15:05 -0600 Subject: [PATCH] feat: updated to latest version --- .envrc | 1 - flake.nix | 16 +++++++++------- 2 files changed, 9 insertions(+), 8 deletions(-) diff --git a/.envrc b/.envrc index a988035..8dfc6aa 100644 --- a/.envrc +++ b/.envrc @@ -1,2 +1 @@ -nix_direnv_watch_file requirements.txt use flake || use nix diff --git a/flake.nix b/flake.nix index 5626d3d..6960887 100644 --- a/flake.nix +++ b/flake.nix @@ -15,25 +15,27 @@ lib = pkgs.lib; python3Packages = pkgs.python3Packages; fetchPypi = pkgs.fetchPypi; + + src = pkgs.fetchFromGitHub { + owner = "webcomics"; + repo = "dosage"; + rev = "9163317abadcef0a562afaaf422828b56d006e20"; + hash = "sha256-t5HxvXCFPNG5K1uDtfIxDo6JV921ywY1Eznj7GoSh44="; + }; in rec { defaultPackage = python3Packages.buildPythonApplication rec { pname = "dosage"; version = "3.1.dev104+g9e05fae304"; format = "pyproject"; - src = pkgs.fetchFromGitHub { - owner = "webcomics"; - repo = "dosage"; - rev = "9e05fae3041f0b20260d253b9964aed53fb3932e"; - hash = "sha256-91lVAc6Mkeot3T12MAl7v9v4huMWD+0O18b3Hjd4Bkw="; - }; - nativeCheckInputs = with python3Packages; [ pytestCheckHook pytest-xdist responses ]; + requirements = "${src}/setup/requirements.txt"; + nativeBuildInputs = with python3Packages; [ setuptools-scm ]; propagatedBuildInputs = with python3Packages; [