diff --git a/pkgs/development/python-modules/standard-sndhdr/default.nix b/pkgs/development/python-modules/standard-sndhdr/default.nix new file mode 100644 index 000000000000..6fefd2146c00 --- /dev/null +++ b/pkgs/development/python-modules/standard-sndhdr/default.nix @@ -0,0 +1,42 @@ +{ + buildPythonPackage, + fetchFromGitHub, + lib, + pytestCheckHook, + setuptools, + standard-aifc, +}: + +buildPythonPackage rec { + pname = "standard-sndhdr"; + version = "3.13.0"; + pyproject = true; + + src = fetchFromGitHub { + owner = "youknowone"; + repo = "python-deadlib"; + tag = "v${version}"; + hash = "sha256-vhGFTd1yXL4Frqli5D1GwOatwByDjvcP8sxgkdu6Jqg="; + }; + + sourceRoot = "${src.name}/sndhdr"; + + build-system = [ setuptools ]; + + dependencies = [ + standard-aifc + ]; + + pythonImportsCheck = [ "sndhdr" ]; + + nativeCheckInputs = [ + pytestCheckHook + ]; + + meta = { + description = "Standard library sndhdr redistribution"; + homepage = "https://github.com/youknowone/python-deadlib/tree/main/sndhdr"; + license = lib.licenses.psfl; + maintainers = [ lib.maintainers.dotlambda ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index fb31006dc940..1f3d5e5a277d 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -17652,6 +17652,12 @@ self: super: with self; { standard-pipes = if pythonAtLeast "3.13" then callPackage ../development/python-modules/standard-pipes { } else null; + standard-sndhdr = + if pythonAtLeast "3.13" then + callPackage ../development/python-modules/standard-sndhdr { } + else + null; + standard-sunau = if pythonAtLeast "3.13" then callPackage ../development/python-modules/standard-sunau { } else null;