mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-10 19:55:41 +03:00
python313Packages.standard-mailcap: init at 3.13.0
This commit is contained in:
parent
6425d59fb2
commit
d5e9216087
2 changed files with 40 additions and 0 deletions
37
pkgs/development/python-modules/standard-mailcap/default.nix
Normal file
37
pkgs/development/python-modules/standard-mailcap/default.nix
Normal 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 ];
|
||||
};
|
||||
}
|
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue