1{ lib, buildPythonPackage, fetchPypi, python
2, characteristic, six, twisted
3}:
4
5buildPythonPackage rec {
6 pname = "tubes";
7 version = "0.2.1";
8
9 src = fetchPypi {
10 pname = "Tubes";
11 inherit version;
12 sha256 = "sha256-WbkZfy+m9/xrwygd5VeXrccpu3XJxhO09tbEFZnw14s=";
13 };
14
15 propagatedBuildInputs = [ characteristic six twisted ];
16
17 checkPhase = ''
18 ${python.interpreter} -m twisted.trial -j $NIX_BUILD_CORES tubes
19 '';
20
21 pythonImportsCheck = [ "tubes" ];
22
23 meta = with lib; {
24 description = "a data-processing and flow-control engine for event-driven programs";
25 homepage = "https://github.com/twisted/tubes";
26 license = licenses.mit;
27 maintainers = with maintainers; [ exarkun ];
28 };
29}