nixpkgs/pkgs/development/python-modules/tls-parser/default.nix
Ihar Hrachyshka 567e8dfd8e
treewide: clean up 'meta = with' pattern
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>
2025-12-10 18:09:49 +01:00

35 lines
823 B
Nix

{
lib,
fetchFromGitHub,
buildPythonPackage,
pytestCheckHook,
setuptools,
}:
buildPythonPackage rec {
pname = "tls-parser";
version = "2.0.2";
pyproject = true;
src = fetchFromGitHub {
owner = "nabla-c0d3";
repo = "tls_parser";
tag = version;
hash = "sha256-nNQ5XLsZMUXmsTnaqiUeaaHtiVc5r4woRxeYVhO3ICY=";
};
build-system = [ setuptools ];
nativeCheckInputs = [ pytestCheckHook ];
pythonImportsCheck = [ "tls_parser" ];
meta = {
description = "Small library to parse TLS records";
homepage = "https://github.com/nabla-c0d3/tls_parser";
changelog = "https://github.com/nabla-c0d3/tls_parser/releases/tag/${src.tag}";
platforms = with lib.platforms; linux ++ darwin;
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ veehaitch ];
};
}