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";
|
2022-09-22 12:36:57 +00:00
|
|
|
version = "4.3.1";
|
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}";
|
|
|
|
hash = "sha256-HQzfa5UmPo+Ccs2eRDwQA9EMzDg7+Nd4jIjBt+7qwzE=";
|
2021-04-17 00:35:05 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
beautifultable
|
|
|
|
click
|
|
|
|
click-default-group
|
|
|
|
humanize
|
|
|
|
keyring
|
|
|
|
python-dateutil
|
|
|
|
requests
|
|
|
|
];
|
|
|
|
|
2022-09-09 14:08:57 +00:00
|
|
|
checkInputs = [ 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";
|
|
|
|
license = with licenses; [ bsd3 ];
|
|
|
|
maintainers = with maintainers; [ fab ];
|
|
|
|
};
|
|
|
|
}
|