summary refs log tree commit diff
path: root/pkgs/development/python-modules/tubes/default.nix
blob: 0dbfe22065703d888bb694fcf64293440af2dddc (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
{ lib, buildPythonPackage, fetchPypi, python
, characteristic, six, twisted
}:

buildPythonPackage rec {
  pname = "tubes";
  version = "0.2.0";

  src = fetchPypi {
    pname = "Tubes";
    inherit version;
    sha256 = "0sg1gg2002h1xsgxigznr1zk1skwmhss72dzk6iysb9k9kdgymcd";
  };

  propagatedBuildInputs = [ characteristic six twisted ];

  checkPhase = ''
    ${python.interpreter} -m twisted.trial -j $NIX_BUILD_CORES tubes
  '';

  pythonImportsCheck = [ "tubes" ];

  meta = with lib; {
    description = "a data-processing and flow-control engine for event-driven programs";
    homepage    = "https://github.com/twisted/tubes";
    license     = licenses.mit;
    maintainers = with maintainers; [ exarkun ];
  };
}