python3Packages.tinyio: init at 0.2.0 (#431032)

This commit is contained in:
Gaétan Lepage
2025-08-05 10:16:04 +02:00
committed by GitHub
2 changed files with 51 additions and 0 deletions
@@ -0,0 +1,49 @@
{
lib,
stdenv,
buildPythonPackage,
fetchFromGitHub,
# build-system
hatchling,
# tests
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "tinyio";
version = "0.2.0";
pyproject = true;
src = fetchFromGitHub {
owner = "patrick-kidger";
repo = "tinyio";
tag = "v${version}";
hash = "sha256-5Fk+/tT6mkyIosRKTFG5XuFtAM5wy3v0npiJjN47WV8=";
};
build-system = [
hatchling
];
pythonImportsCheck = [ "tinyio" ];
nativeCheckInputs = [
pytestCheckHook
];
disabledTests = lib.optionals stdenv.hostPlatform.isDarwin [
# AssertionError
# assert 0 >= 4, where 0 = sum([False, False, False, False, False])
"test_sleep"
];
meta = {
description = "Dead-simple event loop for Python";
homepage = "https://github.com/patrick-kidger/tinyio";
changelog = "https://github.com/patrick-kidger/tinyio/releases/tag/v${version}";
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [ GaetanLepage ];
};
}
+2
View File
@@ -18047,6 +18047,8 @@ self: super: with self; {
tinyhtml5 = callPackage ../development/python-modules/tinyhtml5 { };
tinyio = callPackage ../development/python-modules/tinyio { };
tinyobjloader-py = callPackage ../development/python-modules/tinyobjloader-py { };
tinyrecord = callPackage ../development/python-modules/tinyrecord { };