567e8dfd8e
This commit was created by a combination of scripts and tools: - an ast-grep script to prefix things in meta with `lib.`, - a modified nixf-diagnose / nixf combination to remove unused `with lib;`, and - regular nixfmt. Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
42 lines
943 B
Nix
42 lines
943 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
flit-core,
|
|
pytestCheckHook,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "asyncinotify";
|
|
version = "4.3.2";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "absperf";
|
|
repo = "asyncinotify";
|
|
tag = "v${version}";
|
|
hash = "sha256-lIy9hZhTdXPt9gJGPDtfLttYQL8OiWfNcz3rT89QS7M=";
|
|
};
|
|
|
|
build-system = [ flit-core ];
|
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
|
|
|
pythonImportsCheck = [ "asyncinotify" ];
|
|
|
|
enabledTestPaths = [ "test.py" ];
|
|
|
|
meta = {
|
|
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/${src.tag}";
|
|
license = lib.licenses.mpl20;
|
|
maintainers = with lib.maintainers; [ cynerd ];
|
|
};
|
|
}
|