python3Packages.tinyio: init at 0.2.0 (#431032)
This commit is contained in:
@@ -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 ];
|
||||
};
|
||||
}
|
||||
@@ -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 { };
|
||||
|
||||
Reference in New Issue
Block a user