about summary refs log tree commit diff
path: root/pkgs/development/python-modules/protego/default.nix
blob: ad7e4aa4af6e16fdd16a253bb5dc1d2c4416671b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
{ lib
, buildPythonPackage
, fetchPypi
, six
, pytest
}:

buildPythonPackage rec {
  pname = "Protego";
  version = "0.1.16";

  src = fetchPypi {
    inherit pname version;
    sha256 = "a682771bc7b51b2ff41466460896c1a5a653f9a1e71639ef365a72e66d8734b4";
  };
  propagatedBuildInputs = [ six ];

  checkInputs = [ pytest ];

  checkPhase = ''
    pytest tests
  '';

  meta = with lib; {
    description = "A pure-Python robots.txt parser with support for modern conventions";
    homepage = "https://github.com/scrapy/protego";
    license = licenses.bsd3;
    maintainers = [ maintainers.marsam ];
  };
}