mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-03-09 04:46:51 +01:00
This commit was created by a combination of scripts and tools: - an ast-grep script to prefix things in meta with `lib.`, - a modified nixf-diagnose / nixf combination to remove unused `with lib;`, and - regular nixfmt. Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
27 lines
577 B
Nix
27 lines
577 B
Nix
{
|
|
lib,
|
|
fetchPypi,
|
|
buildPythonPackage,
|
|
}:
|
|
buildPythonPackage rec {
|
|
pname = "bencoder";
|
|
version = "0.2.0";
|
|
format = "setuptools";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-rENvM/3X51stkFdJHSq+77VjHvsTyBNAPbCtsRq1L8I=";
|
|
};
|
|
|
|
pythonImportsCheck = [ "bencoder" ];
|
|
|
|
# There are no tests.
|
|
doCheck = false;
|
|
|
|
meta = {
|
|
description = "Simple bencode decoder/encoder library in pure Python";
|
|
homepage = "https://github.com/utdemir/bencoder";
|
|
license = lib.licenses.gpl2;
|
|
maintainers = with lib.maintainers; [ somasis ];
|
|
};
|
|
}
|