0
0
Fork 0
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-07-14 14:10:33 +03:00
nixpkgs/pkgs/development/python-modules/asyncinotify/default.nix

45 lines
994 B
Nix
Raw Normal View History

2024-05-22 16:01:06 +02:00
{
lib,
buildPythonPackage,
fetchFromGitHub,
flit-core,
pytestCheckHook,
pythonOlder,
}:
buildPythonPackage rec {
pname = "asyncinotify";
version = "4.2.0";
pyproject = true;
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "absperf";
repo = "asyncinotify";
tag = "v${version}";
hash = "sha256-RHzjUoVhDxI7kYD5HWkb0f8X6BjjTTCAvSvASPy6FGk=";
};
build-system = [ flit-core ];
2024-05-22 16:01:06 +02:00
nativeCheckInputs = [ pytestCheckHook ];
2024-05-22 16:01:06 +02:00
pythonImportsCheck = [ "asyncinotify" ];
2024-05-22 16:01:06 +02:00
pytestFlagsArray = [ "test.py" ];
meta = with lib; {
python313Packages.asyncinotify: mark unsupported on darwin ``` Check whether the following modules can be imported: asyncinotify Traceback (most recent call last): File "<string>", line 1, in <module> File "<string>", line 1, in <lambda> File "/nix/store/vfdk6q81hdjqjfiqz8f92hibdck3kmn6-python3-3.12.10/lib/python3.12/importlib/__init__.py", line 90, in import_module return _bootstrap._gcd_import(name[level:], package, level) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "<frozen importlib._bootstrap>", line 1387, in _gcd_import File "<frozen importlib._bootstrap>", line 1360, in _find_and_load File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked File "<frozen importlib._bootstrap>", line 935, in _load_unlocked File "<frozen importlib._bootstrap_external>", line 999, in exec_module File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed File "/nix/store/bk44appr4dabadspjahk3l0ad29vhq8s-python3.12-asyncinotify-4.2.0/lib/python3.12/site-packages/asyncinotify/__init__.py", line 23, in <module> from . import _ffi File "/nix/store/bk44appr4dabadspjahk3l0ad29vhq8s-python3.12-asyncinotify-4.2.0/lib/python3.12/site-packages/asyncinotify/_ffi.py", line 36, in <module> libc.inotify_init.restype = check_return ^^^^^^^^^^^^^^^^^ File "/nix/store/vfdk6q81hdjqjfiqz8f92hibdck3kmn6-python3-3.12.10/lib/python3.12/ctypes/__init__.py", line 392, in __getattr__ func = self.__getitem__(name) ^^^^^^^^^^^^^^^^^^^^^^ File "/nix/store/vfdk6q81hdjqjfiqz8f92hibdck3kmn6-python3-3.12.10/lib/python3.12/ctypes/__init__.py", line 397, in __getitem__ func = self._FuncPtr((name_or_ordinal, self)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ AttributeError: dlsym(0x3312f2768, inotify_init): symbol not found ```
2025-05-17 13:26:04 +02:00
badPlatforms = [
# Unsupported and crashing on import in dlsym with symbol not found
"aarch64-darwin"
"x86_64-darwin"
];
description = "Module for inotify";
homepage = "https://github.com/absperf/asyncinotify/";
changelog = "https://github.com/absperf/asyncinotify/releases/tag/v${version}";
license = licenses.mpl20;
maintainers = with maintainers; [ cynerd ];
};
}