diff --git a/pkgs/applications/graphics/dosage/default.nix b/pkgs/applications/graphics/dosage/default.nix index e943bf4f3181..56a128f2246c 100644 --- a/pkgs/applications/graphics/dosage/default.nix +++ b/pkgs/applications/graphics/dosage/default.nix @@ -1,22 +1,43 @@ -{ lib, python3Packages, fetchPypi }: +{ + lib, + python3Packages, + fetchPypi, +}: python3Packages.buildPythonApplication rec { pname = "dosage"; - version = "2.17"; + version = "3.0"; src = fetchPypi { inherit pname version; - sha256 = "0vmxgn9wd3j80hp4gr5iq06jrl4gryz5zgfdd2ah30d12sfcfig0"; + sha256 = "sha256-mHV/U9Vqv7fSsLYNrCXckkJ1YpsccLd8HsJ78IwLX0Y="; }; + pyproject = true; + nativeCheckInputs = with python3Packages; [ - pytestCheckHook pytest-xdist responses + pytestCheckHook + pytest-xdist + responses ]; - nativeBuildInputs = with python3Packages; [ setuptools-scm ]; + build-system = [ python3Packages.setuptools-scm ]; - propagatedBuildInputs = with python3Packages; [ - colorama imagesize lxml requests setuptools six + dependencies = with python3Packages; [ + colorama + imagesize + lxml + requests + six + platformdirs + ]; + + disabledTests = [ + # need network connect to api.github.com + "test_update_available" + "test_no_update_available" + "test_update_broken" + "test_current" ]; meta = {