bencode-py: init at 4.0.0

This commit is contained in:
Varun Madiath 2023-02-06 12:14:15 -05:00
parent c6007f7c61
commit dedb550ce6
3 changed files with 50 additions and 0 deletions

View File

@ -114,6 +114,16 @@ in mkLicense lset) ({
fullName = "Bitstream Vera Font License";
};
bitTorrent10 = {
spdxId = "BitTorrent-1.0";
fullName = " BitTorrent Open Source License v1.0";
};
bitTorrent11 = {
spdxId = "BitTorrent-1.1";
fullName = " BitTorrent Open Source License v1.1";
};
bola11 = {
url = "https://blitiri.com.ar/p/bola/";
fullName = "Buena Onda License Agreement 1.1";

View File

@ -0,0 +1,38 @@
{
lib,
buildPythonPackage,
fetchPypi,
python,
pbr,
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "beconde-py";
version = "4.0.0";
format = "setuptools";
src = fetchPypi {
inherit version;
pname = "bencode.py";
sha256 = "sha256-KiTM2hclpRplCJPQtjJgE4NZ6qKZu256CZYTUKKm4Fw=";
};
pythonImportsCheck = [
"bencodepy"
];
nativeBuildInputs = [
pbr
];
nativeCheckInputs = [
pytestCheckHook
];
meta = with lib; {
description = "Simple bencode parser (for Python 2, Python 3 and PyPy)";
homepage = "https://github.com/fuzeman/bencode.py";
license = licenses.bitTorrent11;
maintainers = with maintainers; [vamega];
};
}

View File

@ -1212,6 +1212,8 @@ self: super: with self; {
bellows = callPackage ../development/python-modules/bellows { };
bencode-py = callPackage ../development/python-modules/bencode-py { };
bencoder = callPackage ../development/python-modules/bencoder { };
beniget = callPackage ../development/python-modules/beniget { };