Merge pull request #248225 from marsam/update-python-protego

python310Packages.protego: 0.2.1 -> 0.3.0
This commit is contained in:
Mario Rodas 2023-08-11 06:38:55 -05:00 committed by GitHub
commit 650596759b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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 ];
};