My personal project and infrastructure archive
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
nomicon/pkgs/development/python-modules/mwdblib/default.nix

55 lines
1001 B

{ lib
, beautifultable
, buildPythonPackage
, click
, click-default-group
, fetchFromGitHub
, humanize
, keyring
, python
, python-dateutil
, pythonOlder
, requests
}:
buildPythonPackage rec {
pname = "mwdblib";
version = "4.2.1";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "CERT-Polska";
repo = pname;
rev = "v${version}";
hash = "sha256-Wkqvi/buYKDoGi+4C9zkxWEiGynk9Ds8gLsdoaZCdKg=";
};
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 ];
};
}