depot/third_party/nixpkgs/pkgs/development/python-modules/mwdblib/default.nix
Default email ce641f4048 Project import generated by Copybara.
GitOrigin-RevId: bc5d68306b40b8522ffb69ba6cff91898c2fbbff
2021-12-06 17:07:01 +01:00

49 lines
925 B
Nix

{ lib
, beautifultable
, buildPythonPackage
, click
, click-default-group
, fetchFromGitHub
, humanize
, keyring
, python
, python-dateutil
, requests
}:
buildPythonPackage rec {
pname = "mwdblib";
version = "3.4.1";
src = fetchFromGitHub {
owner = "CERT-Polska";
repo = pname;
rev = "v${version}";
sha256 = "sha256-jCtK3Fk725EaA26GG6j6xqEMFH4Qq92QWrJ7sxcWRaY=";
};
propagatedBuildInputs = [
beautifultable
click
click-default-group
humanize
keyring
python-dateutil
requests
];
checkPhase = ''
runHook preCheck
${python.interpreter} -m unittest discover
runHook postCheck
'';
pythonImportsCheck = [ "mwdblib" ];
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 ];
};
}