summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/tubes/default.nix
blob: 34e6b395de89ed0fcde9168e03a8c9321716387e (plain)
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
{
  lib,
  buildPythonPackage,
  fetchFromGitHub,
  python,
  six,
  twisted,
}:

buildPythonPackage {
  pname = "tubes";
  version = "0.2.1-unstable-2023-11-06";
  format = "setuptools";

  src = fetchFromGitHub {
    owner = "twisted";
    repo = "tubes";
    rev = "b74680b8e7bcfe64362865356bb9461b77bbd5c0";
    hash = "sha256-E8brnt8CtTEEP1KQTsTsgnl54H4zRGp+1IuoI/Qf5NA=";
  };

  propagatedBuildInputs = [
    six
    twisted
  ];

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

  pythonImportsCheck = [ "tubes" ];

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