Skip to content

Commit

Permalink
python313Packages.standard-imghdr: init at 3.13.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Bot-wxt1221 committed Dec 27, 2024
1 parent 7cc0bff commit acb752d
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 0 deletions.
38 changes: 38 additions & 0 deletions pkgs/development/python-modules/standard-imghdr/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
{
buildPythonPackage,
lib,
fetchFromGitHub,
setuptools,
pytestCheckHook,
pythonOlder,
}:

buildPythonPackage rec {
pname = "standard-imghdr";
version = "3.13.0";
pyproject = true;

src = fetchFromGitHub {
owner = "youknowone";
repo = "python-deadlib";
tag = "v${version}";
hash = "sha256-vhGFTd1yXL4Frqli5D1GwOatwByDjvcP8sxgkdu6Jqg=";
};

sourceRoot = "${src.name}/imghdr";

build-system = [
setuptools
];

nativeCheckInputs = [
pytestCheckHook
];

meta = {
homepage = "https://github.com/youknowone/python-deadlib";
maintainers = with lib.maintainers; [ bot-wxt1221 ];
description = "Standard library imghdr redistribution";
license = lib.licenses.psfl;
};
}
2 changes: 2 additions & 0 deletions pkgs/top-level/python-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -15427,6 +15427,8 @@ self: super: with self; {

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

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

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

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

0 comments on commit acb752d

Please sign in to comment.