Files
nixpkgs/pkgs/development/python-modules/cpe-search/default.nix
T

63 lines
1.1 KiB
Nix

{
lib,
aiohttp,
aiolimiter,
buildPythonPackage,
fetchFromGitHub,
hatchling,
mariadb,
requests,
tqdm,
ujson,
}:
buildPythonPackage (finalAttrs: {
pname = "cpe-search";
version = "0.2.8";
pyproject = true;
src = fetchFromGitHub {
owner = "ra1nb0rn";
repo = "cpe_search";
tag = "v${finalAttrs.version}";
hash = "sha256-4f8+f0BZjbTcqhioYLVa6sJIcYEte5SYqQo3gY8BMEU=";
};
build-system = [ hatchling ];
dependencies = [
aiohttp
aiolimiter
requests
tqdm
ujson
];
optional-dependencies = {
all = [
aiohttp
aiolimiter
mariadb
requests
tqdm
ujson
];
mariadb = [
mariadb
];
};
# Tests requires DB and API access
doCheck = false;
pythonImportsCheck = [ "cpe_search" ];
meta = {
description = "Search for Common Platform Enumeration (CPE) strings using software names and titles";
homepage = "https://github.com/ra1nb0rn/cpe_search";
changelog = "https://github.com/ra1nb0rn/cpe_search/blob/${finalAttrs.src.tag}/CHANGELOG.md";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ fab ];
};
})