summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/pywebcopy/default.nix
blob: 028a78177ea9395d672a2afdecac043d21c12893 (plain)
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
{
  lib,
  buildPythonPackage,
  cachecontrol,
  fetchFromGitHub,
  legacy-cgi,
  lxml-html-clean,
  pytestCheckHook,
  requests,
  setuptools,
  six,
}:

buildPythonPackage rec {
  pname = "pywebcopy";
  version = "7.1";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "rajatomar788";
    repo = "pywebcopy";
    tag = version;
    hash = "sha256-ee8uGg4PU1uch8cyiU7QfvdYFUVDz7obq9oC8fKkf1s=";
  };

  build-system = [ setuptools ];

  dependencies = [
    cachecontrol
    legacy-cgi
    lxml-html-clean
    requests
    six
  ];

  nativeCheckInputs = [ pytestCheckHook ];

  pythonImportsCheck = [ "pywebcopy" ];

  meta = {
    changelog = "https://github.com/rajatomar788/pywebcopy/blob/master/docs/changelog.md";
    description = "Python package for cloning complete webpages and websites to local storage";
    homepage = "https://github.com/rajatomar788/pywebcopy/";
    license = lib.licenses.asl20;
    maintainers = with lib.maintainers; [ d3vil0p3r ];
  };
}