Skip to content

Commit

Permalink
python313Packages.standard-mailcap: init at 3.13.0
Browse files Browse the repository at this point in the history
  • Loading branch information
lucc committed Dec 16, 2024
1 parent aaa46e3 commit 98032d8
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 0 deletions.
30 changes: 30 additions & 0 deletions pkgs/development/python-modules/standard-mailcap/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
{
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 ];
preBuild = "cd mailcap";
nativeCheckInputs = [ pytestCheckHook ];
meta = {
description = "Standard library mailcap redistribution";
homepage = "https://github.com/youknowone/python-deadlib";
license = lib.licenses.psfl;
maintainers = [ lib.maintainers.lucc ];
};
}
2 changes: 2 additions & 0 deletions pkgs/top-level/python-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -15375,6 +15375,8 @@ self: super: with self; {

stamina = callPackage ../development/python-modules/stamina { };

standard-mailcap = if pythonOlder "3.13" then null else callPackage ../development/python-modules/standard-mailcap { };

stanio = callPackage ../development/python-modules/stanio { };

stanza = callPackage ../development/python-modules/stanza { };
Expand Down

0 comments on commit 98032d8

Please sign in to comment.