Files
nixpkgs/pkgs/by-name/pr/pricehist/package.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

43 lines
885 B
Nix

{
lib,
python3Packages,
fetchFromGitLab,
}:
python3Packages.buildPythonApplication rec {
pname = "pricehist";
version = "1.4.7";
format = "pyproject";
src = fetchFromGitLab {
owner = "chrisberkhout";
repo = "pricehist";
tag = version;
hash = "sha256-SBRJxNnA+nOxO6h97WZZHwhxoXeNtb5+rDayn4Hw6so=";
};
dependencies = with python3Packages; [
requests
lxml
cssselect
curlify
];
build-system = with python3Packages; [
poetry-core
];
nativeCheckInputs = with python3Packages; [
responses
pytest-mock
pytestCheckHook
];
meta = {
description = "Command-line tool for fetching and formatting historical price data, with support for multiple data sources and output formats";
homepage = "https://gitlab.com/chrisberkhout/pricehist";
license = lib.licenses.mit;
mainProgram = "pricehist";
};
}