mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-26 07:34:11 +00:00
33afbf39f6
checkInputs used to be added to nativeBuildInputs. Now we have nativeCheckInputs to do that instead. Doing this treewide change allows to keep hashes identical to before the introduction of nativeCheckInputs.
52 lines
953 B
Nix
52 lines
953 B
Nix
{ lib
|
|
, beautifultable
|
|
, buildPythonPackage
|
|
, click
|
|
, click-default-group
|
|
, fetchFromGitHub
|
|
, humanize
|
|
, keyring
|
|
, unittestCheckHook
|
|
, python-dateutil
|
|
, pythonOlder
|
|
, requests
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "mwdblib";
|
|
version = "4.3.1";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "CERT-Polska";
|
|
repo = pname;
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-HQzfa5UmPo+Ccs2eRDwQA9EMzDg7+Nd4jIjBt+7qwzE=";
|
|
};
|
|
|
|
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";
|
|
license = with licenses; [ bsd3 ];
|
|
maintainers = with maintainers; [ fab ];
|
|
};
|
|
}
|