From 358a6ead53e0581c7b4fe4c9e8daddcae6be0d9d Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Wed, 14 Sep 2022 23:36:20 +0200 Subject: [PATCH] python3Packages.screeninfo: 0.8 -> 0.8.1 --- .../python-modules/screeninfo/default.nix | 20 +++++++++++++------ 1 file changed, 14 insertions(+), 6 deletions(-) diff --git a/pkgs/development/python-modules/screeninfo/default.nix b/pkgs/development/python-modules/screeninfo/default.nix index dc794513fc4c..f67d68b0dddd 100644 --- a/pkgs/development/python-modules/screeninfo/default.nix +++ b/pkgs/development/python-modules/screeninfo/default.nix @@ -2,25 +2,33 @@ , lib , buildPythonApplication , dataclasses -, fetchPypi +, fetchFromGitHub , libX11 , libXinerama , libXrandr +, poetry-core , pytestCheckHook , pythonOlder }: buildPythonApplication rec { pname = "screeninfo"; - version = "0.8"; + version = "0.8.1"; + format = "pyproject"; disabled = pythonOlder "3.6"; - src = fetchPypi { - inherit pname version; - sha256 = "9501bf8b8458c7d1be4cb0ac9abddddfa80b932fb3f65bfcb54f5586434b1dc5"; + src = fetchFromGitHub { + owner = "rr-"; + repo = pname; + rev = "refs/tags/${version}"; + hash = "sha256-TEy4wff0eRRkX98yK9054d33Tm6G6qWrd9Iv+ITcFmA="; }; + nativeBuildInputs = [ + poetry-core + ]; + propagatedBuildInputs = lib.optionals (pythonOlder "3.7") [ dataclasses ]; @@ -40,7 +48,7 @@ buildPythonApplication rec { disabledTestPaths = [ # We don't have a screen - "screeninfo/test_screeninfo.py" + "tests/test_screeninfo.py" ]; pythonImportsCheck = [ "screeninfo" ];