2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchFromGitHub,
|
|
|
|
python,
|
|
|
|
characteristic,
|
|
|
|
six,
|
|
|
|
twisted,
|
2021-08-23 08:02:39 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "tubes";
|
2024-06-05 15:53:02 +00:00
|
|
|
version = "0.2.1-unstable-2023-11-06";
|
2024-01-02 11:29:13 +00:00
|
|
|
format = "setuptools";
|
2021-08-23 08:02:39 +00:00
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "twisted";
|
|
|
|
repo = "tubes";
|
|
|
|
rev = "b74680b8e7bcfe64362865356bb9461b77bbd5c0";
|
|
|
|
hash = "sha256-E8brnt8CtTEEP1KQTsTsgnl54H4zRGp+1IuoI/Qf5NA=";
|
2021-08-23 08:02:39 +00:00
|
|
|
};
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
characteristic
|
|
|
|
six
|
|
|
|
twisted
|
|
|
|
];
|
2021-08-23 08:02:39 +00:00
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
${python.interpreter} -m twisted.trial -j $NIX_BUILD_CORES tubes
|
|
|
|
'';
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "tubes" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Data-processing and flow-control engine for event-driven programs";
|
2024-06-05 15:53:02 +00:00
|
|
|
homepage = "https://github.com/twisted/tubes";
|
|
|
|
license = licenses.mit;
|
2021-08-23 08:02:39 +00:00
|
|
|
maintainers = with maintainers; [ exarkun ];
|
|
|
|
};
|
|
|
|
}
|