about summary refs log tree commit diff
path: root/pkgs/by-name/re/ready-check/package.nix
blob: 410c4c188a40fb6971f39719404c53b7bf4dac67 (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
31
32
33
34
35
36
37
38
39
40
{ lib
, fetchFromGitHub
, python3
}:

python3.pkgs.buildPythonApplication rec {
  pname = "ready-check";
  version = "1.2.5";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "sesh";
    repo = "ready";
    rev = "refs/tags/v${version}";
    hash = "sha256-eerYxpn1f+d1PQJCDlH9kD1KKlkL/dQFUpbSRcNoXlI=";
  };

  nativeBuildInputs = with python3.pkgs; [
    setuptools
  ];

  propagatedBuildInputs = with python3.pkgs; [
    beautifulsoup4
    thttp
    tld
  ];

  pythonImportsCheck = [
    "ready"
  ];

  meta = with lib; {
    description = "Tool to check readiness of websites";
    homepage = "https://github.com/sesh/ready";
    changelog = "https://github.com/sesh/ready/releases/tag/v${version}";
    license = licenses.isc;
    maintainers = with maintainers; [ fab ];
    mainProgram = "ready";
  };
}