depot/third_party/nixpkgs/pkgs/development/python-modules/mwdblib/default.nix
Default email 87f9c27ba9 Project import generated by Copybara.
GitOrigin-RevId: fe2ecaf706a5907b5e54d979fbde4924d84b65fc
2023-04-12 14:48:02 +02:00

52 lines
1 KiB
Nix

{ lib
, beautifultable
, buildPythonPackage
, click
, click-default-group
, fetchFromGitHub
, humanize
, keyring
, unittestCheckHook
, python-dateutil
, pythonOlder
, requests
}:
buildPythonPackage rec {
pname = "mwdblib";
version = "4.4.0";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "CERT-Polska";
repo = pname;
rev = "refs/tags/v${version}";
hash = "sha256-WwSKWfnSDJT8kIAk4e8caeL2UztFaIpNCDy1j46IbzM=";
};
propagatedBuildInputs = [
beautifultable
click
click-default-group
humanize
keyring
python-dateutil
requests
];
nativeCheckInputs = [ unittestCheckHook ];
pythonImportsCheck = [
"mwdblib"
];
meta = with lib; {
description = "Python client library for the mwdb service";
homepage = "https://github.com/CERT-Polska/mwdblib";
changelog = "https://github.com/CERT-Polska/mwdblib/releases/tag/v${version}";
license = with licenses; [ bsd3 ];
maintainers = with maintainers; [ fab ];
};
}