nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 flit-core,
6 pytestCheckHook,
7}:
8
9buildPythonPackage rec {
10 pname = "asyncinotify";
11 version = "4.3.2";
12 pyproject = true;
13
14 src = fetchFromGitHub {
15 owner = "absperf";
16 repo = "asyncinotify";
17 tag = "v${version}";
18 hash = "sha256-lIy9hZhTdXPt9gJGPDtfLttYQL8OiWfNcz3rT89QS7M=";
19 };
20
21 build-system = [ flit-core ];
22
23 nativeCheckInputs = [ pytestCheckHook ];
24
25 pythonImportsCheck = [ "asyncinotify" ];
26
27 enabledTestPaths = [ "test.py" ];
28
29 meta = {
30 badPlatforms = [
31 # Unsupported and crashing on import in dlsym with symbol not found
32 "aarch64-darwin"
33 "x86_64-darwin"
34 ];
35 description = "Module for inotify";
36 homepage = "https://github.com/absperf/asyncinotify/";
37 changelog = "https://github.com/absperf/asyncinotify/releases/tag/${src.tag}";
38 license = lib.licenses.mpl20;
39 maintainers = with lib.maintainers; [ cynerd ];
40 };
41}