1{ lib
2, buildPythonPackage
3, fetchFromGitHub
4, typing-extensions
5, pytestCheckHook
6, pythonOlder
7}:
8
9buildPythonPackage rec {
10 pname = "asyncstdlib";
11 version = "3.10.7";
12 format = "flit";
13
14 disabled = pythonOlder "3.7";
15
16 src = fetchFromGitHub {
17 owner = "maxfischer2781";
18 repo = pname;
19 rev = "refs/tags/v${version}";
20 hash = "sha256-lX5mOcoZTb6EfRHT0qTTWst3NErLti4jZwAeQx4pHGA=";
21 };
22
23 propagatedBuildInputs = [
24 typing-extensions
25 ];
26
27 nativeCheckInputs = [
28 pytestCheckHook
29 ];
30
31 pythonImportsCheck = [
32 "asyncstdlib"
33 ];
34
35 meta = with lib; {
36 description = "Python library that extends the Python asyncio standard library";
37 homepage = "https://asyncstdlib.readthedocs.io/";
38 changelog = "https://github.com/maxfischer2781/asyncstdlib/releases/tag/v${version}";
39 license = with licenses; [ mit ];
40 maintainers = with maintainers; [ fab ];
41 };
42}