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 = [ ]; };