2023-09-04 18:35:25 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonApplication
|
|
|
|
, fetchFromGitLab
|
|
|
|
, requests
|
|
|
|
, lxml
|
|
|
|
, cssselect
|
|
|
|
, curlify
|
|
|
|
, poetry-core
|
|
|
|
, pytest-mock
|
|
|
|
, responses
|
|
|
|
, pytestCheckHook
|
2024-03-15 04:06:16 +00:00
|
|
|
, pythonRelaxDepsHook
|
2023-09-04 18:35:25 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
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
|
|
|
|
];
|
|
|
|
|
2024-03-15 04:06:16 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
pythonRelaxDepsHook
|
|
|
|
];
|
|
|
|
|
2023-09-04 18:35:25 +00:00
|
|
|
nativeCheckInputs = [
|
|
|
|
responses
|
|
|
|
pytest-mock
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
2024-03-15 04:06:16 +00:00
|
|
|
|
|
|
|
pythonRelaxDeps = [
|
|
|
|
# https://gitlab.com/chrisberkhout/pricehist/-/issues/6
|
|
|
|
"lxml"
|
|
|
|
];
|
2023-09-04 18:35:25 +00:00
|
|
|
meta = with lib; {
|
|
|
|
description = "A 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 ];
|
|
|
|
};
|
|
|
|
}
|