mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-11-27 00:10:12 +00:00
86 lines
1.4 KiB
Nix
86 lines
1.4 KiB
Nix
{
|
|
lib,
|
|
beautifulsoup4,
|
|
buildPythonPackage,
|
|
certifi,
|
|
fetchFromGitHub,
|
|
hatchling,
|
|
httpx,
|
|
httpxthrottlecache,
|
|
humanize,
|
|
jinja2,
|
|
lxml,
|
|
nest-asyncio,
|
|
orjson,
|
|
pandas,
|
|
pyarrow,
|
|
pydantic,
|
|
pyrate-limiter,
|
|
rank-bm25,
|
|
rapidfuzz,
|
|
rich,
|
|
stamina,
|
|
tabulate,
|
|
textdistance,
|
|
tqdm,
|
|
truststore,
|
|
unidecode,
|
|
}:
|
|
|
|
buildPythonPackage (finalAttrs: {
|
|
pname = "edgartools";
|
|
version = "5.62.1";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "dgunning";
|
|
repo = "edgartools";
|
|
tag = "v${finalAttrs.version}";
|
|
hash = "sha256-Af3XXWTpi51CFh9Zn9gY/MF1CuystG1fT8VQupD3s5w=";
|
|
};
|
|
|
|
build-system = [ hatchling ];
|
|
|
|
pythonRelaxDeps = [ "certifi" ];
|
|
|
|
dependencies = [
|
|
beautifulsoup4
|
|
certifi
|
|
httpx
|
|
httpxthrottlecache
|
|
humanize
|
|
jinja2
|
|
lxml
|
|
nest-asyncio
|
|
orjson
|
|
pandas
|
|
pyarrow
|
|
pydantic
|
|
pyrate-limiter
|
|
rank-bm25
|
|
rapidfuzz
|
|
rich
|
|
stamina
|
|
tabulate
|
|
textdistance
|
|
tqdm
|
|
truststore
|
|
unidecode
|
|
];
|
|
|
|
# Importing `edgar` creates ~/.edgar; give the check a writable HOME.
|
|
preInstallCheck = ''
|
|
export HOME="$TMPDIR"
|
|
'';
|
|
|
|
pythonImportsCheck = [ "edgar" ];
|
|
|
|
meta = {
|
|
description = "Python library for accessing SEC EDGAR filings";
|
|
homepage = "https://github.com/dgunning/edgartools";
|
|
changelog = "https://github.com/dgunning/edgartools/releases";
|
|
license = lib.licenses.mit;
|
|
maintainers = with lib.maintainers; [ nimakalantar ];
|
|
};
|
|
})
|