depot/third_party/nixpkgs/pkgs/development/python-modules/bencode-py/default.nix
Default email 5ca88bfbb9 Project import generated by Copybara.
GitOrigin-RevId: 9f918d616c5321ad374ae6cb5ea89c9e04bf3e58
2024-07-31 10:19:44 +00:00

31 lines
671 B
Nix

{
lib,
buildPythonPackage,
fetchPypi,
pbr,
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "beconde-py";
version = "4.0.0";
format = "setuptools";
src = fetchPypi {
inherit version;
pname = "bencode.py";
hash = "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 ];
};
}