python3.pkgs.standard-nntplib: init at 3.13.0

This commit is contained in:
Alyssa Ross
2025-06-21 10:11:50 +02:00
parent ed7639a5db
commit c2de182b93
2 changed files with 40 additions and 0 deletions
@@ -0,0 +1,37 @@
{
buildPythonPackage,
fetchFromGitHub,
lib,
pytestCheckHook,
pythonOlder,
setuptools,
}:
buildPythonPackage rec {
pname = "standard-nntplib";
version = "3.13.0";
pyproject = true;
disabled = pythonOlder "3.13";
src = fetchFromGitHub {
owner = "youknowone";
repo = "python-deadlib";
tag = "v${version}";
hash = "sha256-J8c55f527QGcK8p/QKJBZeZV0y9DU0iM1RUFVkWh2Hc=";
sparseCheckout = [ "nntplib" ];
};
build-system = [ setuptools ];
sourceRoot = "${src.name}/nntplib";
nativeCheckInputs = [ pytestCheckHook ];
pythonImportsCheck = [ "nntplib" ];
meta = {
description = "Standard library nntplib redistribution";
homepage = "https://github.com/youknowone/python-deadlib";
license = lib.licenses.psfl;
maintainers = [ lib.maintainers.qyliss ];
};
}
+3
View File
@@ -16954,6 +16954,9 @@ self: super: with self; {
standard-mailcap =
if pythonOlder "3.13" then null else callPackage ../development/python-modules/standard-mailcap { };
standard-nntplib =
if pythonOlder "3.13" then null else callPackage ../development/python-modules/standard-nntplib { };
standard-pipes =
if pythonAtLeast "3.13" then callPackage ../development/python-modules/standard-pipes { } else null;