bcb2f287e1
GitOrigin-RevId: d603719ec6e294f034936c0d0dc06f689d91b6c3
56 lines
1.1 KiB
Nix
56 lines
1.1 KiB
Nix
{ lib
|
|
, buildPythonApplication
|
|
, fetchFromGitLab
|
|
, requests
|
|
, lxml
|
|
, cssselect
|
|
, curlify
|
|
, poetry-core
|
|
, pytest-mock
|
|
, responses
|
|
, pytestCheckHook
|
|
, pythonRelaxDepsHook
|
|
}:
|
|
|
|
buildPythonApplication rec {
|
|
pname = "pricehist";
|
|
version = "1.4.6";
|
|
format = "pyproject";
|
|
|
|
src = fetchFromGitLab {
|
|
owner = "chrisberkhout";
|
|
repo = "pricehist";
|
|
rev = version;
|
|
hash = "sha256-RMZKp0JXQLt9tBZPkb3e/au85lV/FkRBCRYzd2lgUPc=";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
requests
|
|
lxml
|
|
cssselect
|
|
curlify
|
|
poetry-core
|
|
];
|
|
|
|
nativeBuildInputs = [
|
|
pythonRelaxDepsHook
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
responses
|
|
pytest-mock
|
|
pytestCheckHook
|
|
];
|
|
|
|
pythonRelaxDeps = [
|
|
# https://gitlab.com/chrisberkhout/pricehist/-/issues/6
|
|
"lxml"
|
|
];
|
|
meta = with lib; {
|
|
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 = licenses.mit;
|
|
mainProgram = "pricehist";
|
|
maintainers = with maintainers; [ chrpinedo ];
|
|
};
|
|
}
|