lol

python3Packages.protego: 0.3.1 -> 0.4.0

https://github.com/scrapy/protego/blob/0.4.0/CHANGELOG.rst

+9 -8
+9 -8
pkgs/development/python-modules/protego/default.nix
··· 1 1 { 2 2 lib, 3 3 buildPythonPackage, 4 - fetchPypi, 4 + fetchFromGitHub, 5 5 pytestCheckHook, 6 6 pythonOlder, 7 7 setuptools, ··· 9 9 10 10 buildPythonPackage rec { 11 11 pname = "protego"; 12 - version = "0.3.1"; 12 + version = "0.4.0"; 13 13 pyproject = true; 14 14 15 15 disabled = pythonOlder "3.7"; 16 16 17 - src = fetchPypi { 18 - inherit version; 19 - pname = "Protego"; 20 - hash = "sha256-6UQw0NJcu/I5vISdhsXlRPveUx/Mz6BZlTx9o0ShcSw="; 17 + src = fetchFromGitHub { 18 + owner = "scrapy"; 19 + repo = "protego"; 20 + tag = version; 21 + hash = "sha256-2vyETqRYeof5CzOCXCGUYb5vSyV/eT5+lm2GNWiuaF0="; 21 22 }; 22 23 23 - nativeBuildInputs = [ setuptools ]; 24 + build-system = [ setuptools ]; 24 25 25 26 nativeCheckInputs = [ pytestCheckHook ]; 26 27 ··· 29 30 meta = with lib; { 30 31 description = "Module to parse robots.txt files with support for modern conventions"; 31 32 homepage = "https://github.com/scrapy/protego"; 32 - changelog = "https://github.com/scrapy/protego/blob/${version}/CHANGELOG.rst"; 33 + changelog = "https://github.com/scrapy/protego/blob/${src.tag}/CHANGELOG.rst"; 33 34 license = licenses.bsd3; 34 35 maintainers = [ ]; 35 36 };