python313Packages.standard-mailcap: init at 3.13.0

This commit is contained in:
Lucas Hoffmann 2024-12-09 09:02:04 +01:00
parent 6425d59fb2
commit d5e9216087
2 changed files with 40 additions and 0 deletions

View file

@ -0,0 +1,37 @@
{
buildPythonPackage,
fetchFromGitHub,
lib,
pytestCheckHook,
pythonOlder,
setuptools,
}:
buildPythonPackage rec {
pname = "standard-mailcap";
version = "3.13.0";
pyproject = true;
disabled = pythonOlder "3.13";
src = fetchFromGitHub {
owner = "youknowone";
repo = "python-deadlib";
tag = "v${version}";
hash = "sha256-9mtQi5ufxP6xRonTrFC3oWFpWLbJraAmdQYozP3evgc=";
sparseCheckout = [ "mailcap" ];
};
build-system = [ setuptools ];
sourceRoot = "${src.name}/mailcap";
nativeCheckInputs = [ pytestCheckHook ];
pythonImportsCheck = [ "mailcap" ];
meta = {
description = "Standard library mailcap redistribution";
homepage = "https://github.com/youknowone/python-deadlib";
license = lib.licenses.psfl;
maintainers = [ lib.maintainers.lucc ];
};
}

View file

@ -16749,6 +16749,9 @@ self: super: with self; {
else
null;
standard-mailcap =
if pythonOlder "3.13" then null else callPackage ../development/python-modules/standard-mailcap { };
standard-pipes =
if pythonAtLeast "3.13" then callPackage ../development/python-modules/standard-pipes { } else null;