nixpkgs/pkgs/development/python-modules/flatbencode/default.nix
2026-01-05 12:36:42 +00:00

39 lines
785 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
hypothesis,
pytestCheckHook,
setuptools,
}:
buildPythonPackage (finalAttrs: {
pname = "flatbencode";
version = "0.2.1";
pyproject = true;
src = fetchFromGitHub {
owner = "acatton";
repo = "flatbencode";
tag = "v${finalAttrs.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 ];
};
})