python3Packages.flatbencode: init at 0.2.1

This commit is contained in:
Bruno BELANYI
2025-06-09 16:42:32 +00:00
parent 975aa54b5d
commit a67041ba64
2 changed files with 41 additions and 0 deletions
@@ -0,0 +1,39 @@
{
lib,
buildPythonPackage,
fetchFromGitHub,
hypothesis,
pytestCheckHook,
setuptools,
}:
buildPythonPackage rec {
pname = "flatbencode";
version = "0.2.1";
pyproject = true;
src = fetchFromGitHub {
owner = "acatton";
repo = "flatbencode";
tag = "v${version}";
hash = "sha256-1/4w41E8IKygJTBcQOexiDytV6BvVBwIjajKz2uCfu8=";
};
build-system = [
setuptools
];
nativeCheckInputs = [
hypothesis
pytestCheckHook
];
pythonImportsCheck = [ "flatbencode" ];
meta = {
description = "Fast, safe and non-recursive implementation of Bittorrent bencoding";
homepage = "https://github.com/acatton/flatbencode";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ ambroisie ];
};
}
+2
View File
@@ -5131,6 +5131,8 @@ self: super: with self; {
flask-wtf = callPackage ../development/python-modules/flask-wtf { };
flatbencode = callPackage ../development/python-modules/flatbencode { };
flatbuffers = callPackage ../development/python-modules/flatbuffers { inherit (pkgs) flatbuffers; };
flatdict = callPackage ../development/python-modules/flatdict { };