diff options
author | Mario Rodas <marsam@users.noreply.github.com> | 2023-08-09 04:20:00 +0000 |
---|---|---|
committer | Mario Rodas <marsam@users.noreply.github.com> | 2023-08-09 04:20:00 +0000 |
commit | 6760bcd1ab5cdae6044fd40c1cd7240f7c1402ed (patch) | |
tree | 3a3bd41c0aa931139ecd77f051cd92720754c113 /pkgs | |
parent | c1ac598475b0b4ca3f15078eda4cd29087c2a901 (diff) |
python310Packages.protego: 0.2.1 -> 0.3.0
Diff: https://github.com/scrapy/protego/compare/0.2.1...0.3.0 Changelog: https://github.com/scrapy/protego/blob/0.3.0/CHANGELOG.rst
Diffstat (limited to 'pkgs')
-rw-r--r-- | pkgs/development/python-modules/protego/default.nix | 23 |
1 files changed, 12 insertions, 11 deletions
diff --git a/pkgs/development/python-modules/protego/default.nix b/pkgs/development/python-modules/protego/default.nix index 6db79056d3027..7ff0690f3a580 100644 --- a/pkgs/development/python-modules/protego/default.nix +++ b/pkgs/development/python-modules/protego/default.nix @@ -1,29 +1,30 @@ { lib , buildPythonPackage , fetchPypi -, six -, pytest +, pytestCheckHook +, pythonOlder }: buildPythonPackage rec { - pname = "Protego"; - version = "0.2.1"; + pname = "protego"; + version = "0.3.0"; + + disabled = pythonOlder "3.7"; src = fetchPypi { - inherit pname version; - hash = "sha256-32ZtQwTat3Ti3J/rIIuxrI1x6lzuwS9MmeujD71kL/I="; + inherit version; + pname = "Protego"; + hash = "sha256-BCKL/95Ma8ujHPZSm6LP1uG3CAj9wdLLQwG+ayjWxWg="; }; - propagatedBuildInputs = [ six ]; - nativeCheckInputs = [ pytest ]; + nativeCheckInputs = [ pytestCheckHook ]; - checkPhase = '' - pytest tests - ''; + pythonImportsCheck = [ "protego" ]; meta = with lib; { description = "A pure-Python robots.txt parser with support for modern conventions"; homepage = "https://github.com/scrapy/protego"; + changelog = "https://github.com/scrapy/protego/blob/${version}/CHANGELOG.rst"; license = licenses.bsd3; maintainers = [ maintainers.marsam ]; }; |