diff options
author | Mario Rodas <marsam@users.noreply.github.com> | 2023-08-11 06:38:55 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-08-11 06:38:55 -0500 |
commit | 650596759b8b38399a0c4d5e366847d190360e55 (patch) | |
tree | 34fb85ae35fefbf246504d53c97bb2c21c56ef6a | |
parent | a7ad0beffbb3f9a2a9c8e8de703ac50515aa72c2 (diff) | |
parent | 6760bcd1ab5cdae6044fd40c1cd7240f7c1402ed (diff) |
Merge pull request #248225 from marsam/update-python-protego
python310Packages.protego: 0.2.1 -> 0.3.0
-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 ]; }; |