From f33dd654c669600569e67121717fc0db53e4ac7d Mon Sep 17 00:00:00 2001 From: liam-murphy14 Date: Fri, 20 Sep 2024 22:15:53 -0700 Subject: [PATCH] python3Packages.nodriver: refactor to use fetchPypi --- pkgs/development/python-modules/nodriver/default.nix | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/pkgs/development/python-modules/nodriver/default.nix b/pkgs/development/python-modules/nodriver/default.nix index b91737a2d745..9a19815af991 100644 --- a/pkgs/development/python-modules/nodriver/default.nix +++ b/pkgs/development/python-modules/nodriver/default.nix @@ -1,7 +1,7 @@ { lib, buildPythonPackage, - fetchFromGitHub, + fetchPypi, pythonOlder, deprecated, mss, @@ -9,16 +9,14 @@ setuptools, }: -buildPythonPackage { +buildPythonPackage rec { pname = "nodriver"; version = "0.37"; pyproject = true; - src = fetchFromGitHub { - owner = "ultrafunkamsterdam"; - repo = "nodriver"; - rev = "1bb6003c7f0db4d3ec05fdf3fc8c8e0804260103"; - hash = "sha256-8q+9RX9ugrT6/fjlTSIecVcR6lPdZwg7nF+cSTSLlEc="; + src = fetchPypi { + inherit pname version; + hash = "sha256-FF/E0hNZvo26Urtgw+nBH5Rmk7UCaqAsckCLDMuCK0A="; }; disabled = pythonOlder "3.9";