summary refs log tree commit diff
path: root/pkgs/tools/misc/savepagenow/default.nix
blob: d9166d07b74c78d70ffcbbc42d6c54f0f8ccde11 (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
{ lib, python3Packages, fetchFromGitHub }:

python3Packages.buildPythonApplication rec {
  pname = "savepagenow";
  version = "1.1.1";

  src = fetchFromGitHub {
    owner = "pastpages";
    repo = pname;
    rev = "v${version}";
    sha256 = "1lz6rc47cds9rb35jdf8n13gr61wdkh5jqzx4skikm1yrqkwjyhm";
  };

  propagatedBuildInputs = with python3Packages; [ click requests ];

  # requires network access
  doCheck = false;

  meta = with lib; {
    description = "A simple Python wrapper for archive.org's \"Save Page Now\" capturing service";
    homepage = "https://github.com/pastpages/savepagenow";
    license = licenses.mit;
    maintainers = with maintainers; [ SuperSandro2000 ];
  };
}