diff --git a/pkgs/by-name/re/ready-check/package.nix b/pkgs/by-name/re/ready-check/package.nix new file mode 100644 index 000000000000..410c4c188a40 --- /dev/null +++ b/pkgs/by-name/re/ready-check/package.nix @@ -0,0 +1,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"; + }; +}