summary refs log tree commit diff
path: root/pkgs/development/python-modules/pyee/default.nix
blob: 833b83b391362e89142d6b3effae40bad059b772 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
{ buildPythonPackage
, fetchPypi
, lib
, vcversioner
, pytestrunner
, mock
, pytest
, pytest-asyncio
, pytest-trio
, twisted
, zipp ? null
, pyparsing ? null
, pyhamcrest
, futures ? null
, attrs ? null
, isPy27
}:

buildPythonPackage rec {
  pname = "pyee";
  version = "8.1.0";

  src = fetchPypi {
    inherit pname version;
    sha256 = "92dacc5bd2bdb8f95aa8dd2585d47ca1c4840e2adb95ccf90034d64f725bfd31";
  };

  buildInputs = [
    vcversioner
  ];

  checkInputs = [
    mock
    pyhamcrest
    pytest
    pytest-asyncio
    pytest-trio
    pytestrunner
    twisted
  ] ++ lib.optional isPy27 [
    attrs
    futures
    pyparsing
    zipp
  ];

  meta = {
    description = "A port of Node.js's EventEmitter to python";
    homepage = "https://github.com/jfhbrook/pyee";
    license = lib.licenses.mit;
    maintainers = with lib.maintainers; [ kmein ];
  };
}