nixpkgs/pkgs/development/python-modules/pyee/default.nix

45 lines
750 B
Nix
Raw Normal View History

2021-08-24 22:33:34 +01:00
{ lib
, buildPythonPackage
, fetchPypi
, vcversioner
, mock
2021-08-24 22:33:34 +01:00
, pytestCheckHook
, pytest-asyncio
, pytest-trio
, twisted
2021-08-24 22:33:34 +01:00
, pythonOlder
}:
2020-11-17 19:57:14 +00:00
buildPythonPackage rec {
pname = "pyee";
2021-08-24 22:33:34 +01:00
version = "8.2.2";
disabled = pythonOlder "3.6";
2020-11-17 19:57:14 +00:00
src = fetchPypi {
inherit pname version;
2021-08-24 22:33:34 +01:00
sha256 = "sha256-XH5g+N+VcQ2+F1UOFs4BU/g5kMAO90SEG0Pzce1T6+o=";
2020-11-17 19:57:14 +00:00
};
buildInputs = [
vcversioner
];
checkInputs = [
mock
pytest-asyncio
pytest-trio
2021-08-24 22:33:34 +01:00
pytestCheckHook
2020-11-17 19:57:14 +00:00
twisted
];
2021-08-24 22:33:34 +01:00
pythonImportsCheck = [ "pyee" ];
meta = with lib; {
description = "A port of Node.js's EventEmitter to Python";
2020-11-17 19:57:14 +00:00
homepage = "https://github.com/jfhbrook/pyee";
2021-08-24 22:33:34 +01:00
license = licenses.mit;
maintainers = with maintainers; [ kmein ];
2020-11-17 19:57:14 +00:00
};
}