Files
nixpkgs/pkgs/development/python-modules/mwdblib/default.nix
T
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

51 lines
998 B
Nix

{
lib,
beautifultable,
buildPythonPackage,
click-default-group,
click,
fetchFromGitHub,
humanize,
keyring,
requests,
setuptools,
unittestCheckHook,
}:
buildPythonPackage rec {
pname = "mwdblib";
version = "4.6.0";
pyproject = true;
src = fetchFromGitHub {
owner = "CERT-Polska";
repo = "mwdblib";
tag = "v${version}";
hash = "sha256-1oz//6rQiuV/WAv+6qs12ULPhB5nmf7ntcHSAKnRT8E=";
};
build-system = [ setuptools ];
dependencies = [
beautifultable
click
click-default-group
humanize
keyring
requests
];
nativeCheckInputs = [ unittestCheckHook ];
pythonImportsCheck = [ "mwdblib" ];
meta = {
description = "Python client library for the mwdb service";
homepage = "https://github.com/CERT-Polska/mwdblib";
changelog = "https://github.com/CERT-Polska/mwdblib/releases/tag/${src.tag}";
license = lib.licenses.bsd3;
maintainers = with lib.maintainers; [ fab ];
mainProgram = "mwdb";
};
}