python312Packages.zfec: refactor

This commit is contained in:
Fabian Affolter 2024-01-19 21:17:35 +01:00
parent 9002337a97
commit 37c1398c43
2 changed files with 20 additions and 9 deletions

View File

@ -8,13 +8,13 @@
python3.pkgs.buildPythonApplication rec {
pname = "zulip-term";
version = "0.7.0";
pyproject = true;
# no tests on PyPI
src = fetchFromGitHub {
owner = "zulip";
repo = "zulip-terminal";
rev = version;
sha256 = "sha256-ZouUU4p1FSGMxPuzDo5P971R+rDXpBdJn2MqvkJO+Fw=";
rev = "refs/tags/${version}";
hash = "sha256-ZouUU4p1FSGMxPuzDo5P971R+rDXpBdJn2MqvkJO+Fw=";
};
patches = [
@ -50,6 +50,7 @@ python3.pkgs.buildPythonApplication rec {
meta = with lib; {
description = "Zulip's official terminal client";
homepage = "https://github.com/zulip/zulip-terminal";
changelog = "https://github.com/zulip/zulip-terminal/releases/tag/0.7.0";
license = licenses.asl20;
maintainers = with maintainers; [ dotlambda ];
};

View File

@ -1,8 +1,9 @@
{ lib
, buildPythonPackage
, fetchPypi
, setuptools
, hypothesis
, pyutil
, setuptools
, twisted
}:
@ -20,17 +21,26 @@ buildPythonPackage rec {
setuptools
];
propagatedBuildInputs = [ pyutil ];
propagatedBuildInputs = [
pyutil
];
nativeCheckInputs = [ twisted ];
nativeCheckInputs = [
hypothesis
twisted
];
checkPhase = "trial zfec";
checkPhase = ''
trial zfec
'';
pythonImportsCheck = [ "zfec" ];
pythonImportsCheck = [
"zfec"
];
meta = with lib; {
homepage = "https://github.com/tahoe-lafs/zfec";
description = "Zfec, a fast erasure codec which can be used with the command-line, C, Python, or Haskell";
description = "Fast erasure codec which can be used with the command-line, C, Python, or Haskell";
longDescription = ''
Fast, portable, programmable erasure coding a.k.a. "forward
error correction": the generation of redundant blocks of