depot/third_party/nixpkgs/pkgs/development/python-modules/bencode-py/default.nix
Default email 4bac34ead1 Project import generated by Copybara.
GitOrigin-RevId: 724bfc0892363087709bd3a5a1666296759154b1
2023-02-09 12:40:11 +01:00

38 lines
699 B
Nix

{
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];
};
}