From 4361e1f948bb1df4ca951ce8912d4e61437fb5ee Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Sat, 2 Mar 2024 15:52:22 +0100 Subject: [PATCH 1/2] python311Packages.thttp: init at 1.3.0 A lightweight wrapper around urllib https://github.com/sesh/thttp --- .../python-modules/thttp/default.nix | 37 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 + 2 files changed, 39 insertions(+) create mode 100644 pkgs/development/python-modules/thttp/default.nix diff --git a/pkgs/development/python-modules/thttp/default.nix b/pkgs/development/python-modules/thttp/default.nix new file mode 100644 index 000000000000..0e42f2a0c23a --- /dev/null +++ b/pkgs/development/python-modules/thttp/default.nix @@ -0,0 +1,37 @@ +{ lib +, buildPythonPackage +, fetchFromGitHub +, setuptools +, pythonOlder +}: + +buildPythonPackage rec { + pname = "thttp"; + version = "1.3.0"; + pyproject = true; + + disabled = pythonOlder "3.7"; + + src = fetchFromGitHub { + owner = "sesh"; + repo = "thttp"; + rev = "refs/tags/${version}"; + hash = "sha256-e15QMRMpTcWo8TfH3tk23ybSlXFb8F4B/eqAp9oyK8g="; + }; + + nativeBuildInputs = [ + setuptools + ]; + + pythonImportsCheck = [ + "thttp" + ]; + + meta = with lib; { + description = "A lightweight wrapper around urllib"; + homepage = "https://github.com/sesh/thttp"; + changelog = "https://github.com/sesh/thttp/releases/tag/${version}"; + license = licenses.mit; + maintainers = with maintainers; [ fab ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index d2fceb9e64e6..017e5c16f15e 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -14641,6 +14641,8 @@ self: super: with self; { throttler = callPackage ../development/python-modules/throttler { }; + thttp = callPackage ../development/python-modules/thttp { }; + tkinter = callPackage ../development/python-modules/tkinter { py = python.override { x11Support=true; }; }; From 95ae67ded0b6adc3bc20946ca4d2bf7e24bf7c38 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Sat, 2 Mar 2024 15:59:07 +0100 Subject: [PATCH 2/2] ready-check: init at 1.2.5 Tool to check readiness of websites https://github.com/sesh/ready --- pkgs/by-name/re/ready-check/package.nix | 40 +++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 pkgs/by-name/re/ready-check/package.nix 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"; + }; +}