mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-04 12:03:21 +00:00
0215034f25
when they already rely on SRI hashes.
39 lines
697 B
Nix
39 lines
697 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";
|
|
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];
|
|
};
|
|
}
|