2021-04-17 00:35:05 +00:00
|
|
|
{ lib
|
|
|
|
, beautifultable
|
|
|
|
, buildPythonPackage
|
|
|
|
, click
|
|
|
|
, click-default-group
|
|
|
|
, fetchFromGitHub
|
|
|
|
, humanize
|
|
|
|
, keyring
|
2022-09-09 14:08:57 +00:00
|
|
|
, unittestCheckHook
|
2021-04-17 00:35:05 +00:00
|
|
|
, python-dateutil
|
2022-03-05 16:20:37 +00:00
|
|
|
, pythonOlder
|
2021-04-17 00:35:05 +00:00
|
|
|
, requests
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "mwdblib";
|
2023-04-12 12:48:02 +00:00
|
|
|
version = "4.4.0";
|
2022-03-05 16:20:37 +00:00
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
2021-04-17 00:35:05 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "CERT-Polska";
|
|
|
|
repo = pname;
|
2022-09-22 12:36:57 +00:00
|
|
|
rev = "refs/tags/v${version}";
|
2023-04-12 12:48:02 +00:00
|
|
|
hash = "sha256-WwSKWfnSDJT8kIAk4e8caeL2UztFaIpNCDy1j46IbzM=";
|
2021-04-17 00:35:05 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
beautifultable
|
|
|
|
click
|
|
|
|
click-default-group
|
|
|
|
humanize
|
|
|
|
keyring
|
|
|
|
python-dateutil
|
|
|
|
requests
|
|
|
|
];
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [ unittestCheckHook ];
|
2021-04-17 00:35:05 +00:00
|
|
|
|
2022-03-05 16:20:37 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"mwdblib"
|
|
|
|
];
|
2021-04-17 00:35:05 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Python client library for the mwdb service";
|
|
|
|
homepage = "https://github.com/CERT-Polska/mwdblib";
|
2023-04-12 12:48:02 +00:00
|
|
|
changelog = "https://github.com/CERT-Polska/mwdblib/releases/tag/v${version}";
|
2021-04-17 00:35:05 +00:00
|
|
|
license = with licenses; [ bsd3 ];
|
|
|
|
maintainers = with maintainers; [ fab ];
|
|
|
|
};
|
|
|
|
}
|