38 lines
823 B
Nix
38 lines
823 B
Nix
{
|
|
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 ];
|
|
};
|
|
}
|