Skip to content

Commit

Permalink
Merge pull request NixOS#214856 from vamega/bencode-py
Browse files Browse the repository at this point in the history
  • Loading branch information
lovesegfault authored Feb 6, 2023
2 parents aad3432 + dedb550 commit 7b7b6c2
Show file tree
Hide file tree
Showing 4 changed files with 56 additions and 0 deletions.
10 changes: 10 additions & 0 deletions lib/licenses.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down
6 changes: 6 additions & 0 deletions maintainers/maintainer-list.nix
Original file line number Diff line number Diff line change
Expand Up @@ -15303,6 +15303,12 @@
githubId = 27813;
name = "Vincent Breitmoser";
};
vamega = {
email = "[email protected]";
github = "vamega";
githubId = 223408;
name = "Varun Madiath";
};
vandenoever = {
email = "[email protected]";
github = "vandenoever";
Expand Down
38 changes: 38 additions & 0 deletions pkgs/development/python-modules/bencode-py/default.nix
Original file line number Diff line number Diff line change
@@ -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];
};
}
2 changes: 2 additions & 0 deletions pkgs/top-level/python-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -1218,6 +1218,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 { };
Expand Down

0 comments on commit 7b7b6c2

Please sign in to comment.