mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-19 04:03:56 +00:00
50 lines
926 B
Nix
50 lines
926 B
Nix
{ lib
|
|
, beautifultable
|
|
, buildPythonPackage
|
|
, click
|
|
, click-default-group
|
|
, fetchFromGitHub
|
|
, humanize
|
|
, keyring
|
|
, python
|
|
, python-dateutil
|
|
, requests
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "mwdblib";
|
|
version = "3.4.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "CERT-Polska";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
sha256 = "0dbdmps4a3mav02m4h37bj2bw8pg6h52yf3gpdkhi3k9hl9f942h";
|
|
};
|
|
|
|
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 ];
|
|
};
|
|
}
|