python313Packages.standard-mailcap: init at 3.13.0 (#365443)
This commit is contained in:
@@ -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 ];
|
||||
};
|
||||
}
|
||||
@@ -16807,6 +16807,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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user