From be85bf59eba4ae4eb52615f2475ef18cecf2238b Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Sun, 19 Jan 2025 21:17:13 +0100 Subject: [PATCH] python3Packages.protego: 0.3.1 -> 0.4.0 https://github.com/scrapy/protego/blob/0.4.0/CHANGELOG.rst --- .../python-modules/protego/default.nix | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/pkgs/development/python-modules/protego/default.nix b/pkgs/development/python-modules/protego/default.nix index bf2fb99c36af..5823c42526c0 100644 --- a/pkgs/development/python-modules/protego/default.nix +++ b/pkgs/development/python-modules/protego/default.nix @@ -1,7 +1,7 @@ { lib, buildPythonPackage, - fetchPypi, + fetchFromGitHub, pytestCheckHook, pythonOlder, setuptools, @@ -9,18 +9,19 @@ buildPythonPackage rec { pname = "protego"; - version = "0.3.1"; + version = "0.4.0"; pyproject = true; disabled = pythonOlder "3.7"; - src = fetchPypi { - inherit version; - pname = "Protego"; - hash = "sha256-6UQw0NJcu/I5vISdhsXlRPveUx/Mz6BZlTx9o0ShcSw="; + src = fetchFromGitHub { + owner = "scrapy"; + repo = "protego"; + tag = version; + hash = "sha256-2vyETqRYeof5CzOCXCGUYb5vSyV/eT5+lm2GNWiuaF0="; }; - nativeBuildInputs = [ setuptools ]; + build-system = [ setuptools ]; nativeCheckInputs = [ pytestCheckHook ]; @@ -29,7 +30,7 @@ buildPythonPackage rec { meta = with lib; { description = "Module to parse robots.txt files with support for modern conventions"; homepage = "https://github.com/scrapy/protego"; - changelog = "https://github.com/scrapy/protego/blob/${version}/CHANGELOG.rst"; + changelog = "https://github.com/scrapy/protego/blob/${src.tag}/CHANGELOG.rst"; license = licenses.bsd3; maintainers = [ ]; };