scripts/pkgs_wip/bencodepy.nix

35 lines
687 B
Nix

{
lib,
python3,
fetchPypi,
}:
python3.pkgs.buildPythonApplication rec {
pname = "bencodepy";
version = "0.9.5";
pyproject = true;
src = fetchPypi {
inherit pname version;
hash = "sha256-r0chNNc+pY7as8LLLyz2HrnXg5CChMPS1bHP0434ZLg=";
extension = "zip";
};
build-system = [
python3.pkgs.setuptools
python3.pkgs.wheel
];
pythonImportsCheck = [
"bencodepy"
];
meta = {
description = "Bencode encoder/decoder written in Python 3 under the GPLv2";
homepage = "https://pypi.org/project/bencodepy/";
license = lib.licenses.gpl2Only;
maintainers = with lib.maintainers; [ CaptainJawZ ];
mainProgram = "bencodepy";
};
}