mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-12 16:03:32 +00:00
6760bcd1ab
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
32 lines
718 B
Nix
32 lines
718 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, pytestCheckHook
|
|
, pythonOlder
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "protego";
|
|
version = "0.3.0";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchPypi {
|
|
inherit version;
|
|
pname = "Protego";
|
|
hash = "sha256-BCKL/95Ma8ujHPZSm6LP1uG3CAj9wdLLQwG+ayjWxWg=";
|
|
};
|
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
|
|
|
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 ];
|
|
};
|
|
}
|