depot/third_party/nixpkgs/pkgs/development/python-modules/tubes/default.nix
Default email bcb2f287e1 Project import generated by Copybara.
GitOrigin-RevId: d603719ec6e294f034936c0d0dc06f689d91b6c3
2024-06-20 20:27:18 +05:30

41 lines
853 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
python,
characteristic,
six,
twisted,
}:
buildPythonPackage rec {
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 = [
characteristic
six
twisted
];
checkPhase = ''
${python.interpreter} -m twisted.trial -j $NIX_BUILD_CORES tubes
'';
pythonImportsCheck = [ "tubes" ];
meta = with lib; {
description = "Data-processing and flow-control engine for event-driven programs";
homepage = "https://github.com/twisted/tubes";
license = licenses.mit;
maintainers = with maintainers; [ exarkun ];
};
}