python3Packages.bencodetools: init at 1.0.1

This commit is contained in:
OPNA2608 2024-11-01 14:05:38 +01:00
parent 320dfaba2d
commit c07a80fd1c
3 changed files with 39 additions and 1 deletions

View File

@ -3,6 +3,7 @@
lib,
fetchFromGitLab,
gitUpdater,
python3Packages,
}:
stdenv.mkDerivation (finalAttrs: {
@ -35,7 +36,10 @@ stdenv.mkDerivation (finalAttrs: {
runHook postInstallCheck
'';
passthru.updateScript = gitUpdater { rev-prefix = "v"; };
passthru = {
tests.python-module = python3Packages.bencodetools;
updateScript = gitUpdater { rev-prefix = "v"; };
};
meta = {
description = "Collection of tools for manipulating bencoded data";

View File

@ -0,0 +1,30 @@
{
buildPythonPackage,
bencodetools,
pytestCheckHook,
setuptools,
}:
buildPythonPackage {
inherit (bencodetools) pname version src;
format = "pyproject";
nativeBuildInputs = [ setuptools ];
nativeCheckInputs = [ pytestCheckHook ];
dontConfigure = true;
pythonImportsCheck = [
"bencode"
"typevalidator"
];
meta = {
inherit (bencodetools.meta)
description
homepage
license
maintainers
;
};
}

View File

@ -1575,6 +1575,10 @@ self: super: with self; {
bencoder = callPackage ../development/python-modules/bencoder { };
bencodetools = callPackage ../development/python-modules/bencodetools {
bencodetools = pkgs.bencodetools;
};
beniget = callPackage ../development/python-modules/beniget { };
bentoml = callPackage ../development/python-modules/bentoml { };