1{ buildPythonPackage
2, fetchFromGitHub
3, lib
4, six
5, pytestCheckHook
6, mock
7, pytest-asyncio
8}:
9
10buildPythonPackage rec {
11 pname = "promise";
12 version = "2.3.0";
13
14 src = fetchFromGitHub {
15 owner = "syrusakbary";
16 repo = "promise";
17 rev = "v${version}";
18 sha256 = "17mq1bm78xfl0x1g50ng502m5ldq6421rzz35hlqafsj0cq8dkp6";
19 };
20
21 propagatedBuildInputs = [
22 six
23 ];
24
25 checkInputs = [
26 pytestCheckHook
27 mock
28 pytest-asyncio
29 ];
30
31 disabledTestPaths = [
32 "tests/test_benchmark.py"
33 ];
34
35 meta = with lib; {
36 description = "Ultra-performant Promise implementation in Python";
37 homepage = "https://github.com/syrusakbary/promise";
38 license = licenses.mit;
39 maintainers = with maintainers; [
40 kamadorueda
41 ];
42 };
43}