2023-04-26 10:55:59 +02:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
2024-01-23 16:39:09 +01:00
|
|
|
, fetchFromGitHub
|
2023-09-10 00:03:24 +02:00
|
|
|
, flit-core
|
2024-01-23 16:39:09 +01:00
|
|
|
, pytestCheckHook
|
|
|
|
, pythonOlder
|
2023-04-26 10:55:59 +02:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "asyncinotify";
|
2023-07-22 01:33:59 +02:00
|
|
|
version = "4.0.2";
|
2024-01-23 16:39:09 +01:00
|
|
|
pyproject = true;
|
2023-04-26 10:55:59 +02:00
|
|
|
|
2024-01-23 16:39:09 +01:00
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "absperf";
|
2023-04-26 10:55:59 +02:00
|
|
|
repo = "asyncinotify";
|
2024-01-23 16:39:09 +01:00
|
|
|
rev = "refs/tags/v${version}";
|
2023-07-22 01:33:59 +02:00
|
|
|
hash = "sha256-Q7b406UENCmD9SGbaml+y2YLDi7VLZBmDkYMo8CLuVw=";
|
2023-04-26 10:55:59 +02:00
|
|
|
};
|
|
|
|
|
2023-09-10 00:03:24 +02:00
|
|
|
nativeBuildInputs = [
|
|
|
|
flit-core
|
|
|
|
];
|
|
|
|
|
2024-01-23 16:39:09 +01:00
|
|
|
nativeCheckInputs = [
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
|
|
|
pythonImportsCheck = [
|
|
|
|
"asyncinotify"
|
|
|
|
];
|
|
|
|
|
|
|
|
pytestFlagsArray = [
|
|
|
|
"test.py"
|
|
|
|
];
|
2023-04-26 10:55:59 +02:00
|
|
|
|
|
|
|
meta = with lib; {
|
2024-01-23 16:39:09 +01:00
|
|
|
description = "Module for inotify";
|
|
|
|
homepage = "https://github.com/absperf/asyncinotify/";
|
|
|
|
changelog = "https://github.com/absperf/asyncinotify/releases/tag/v${version}";
|
2023-04-26 10:55:59 +02:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ cynerd ];
|
|
|
|
};
|
|
|
|
}
|