2023-10-09 19:29:22 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonApplication
|
|
|
|
, fetchFromGitLab
|
|
|
|
, requests
|
|
|
|
, lxml
|
|
|
|
, cssselect
|
|
|
|
, curlify
|
|
|
|
, poetry-core
|
|
|
|
, pytest-mock
|
|
|
|
, responses
|
|
|
|
, pytestCheckHook
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonApplication rec {
|
|
|
|
pname = "pricehist";
|
2024-07-27 06:49:29 +00:00
|
|
|
version = "1.4.7";
|
2023-10-09 19:29:22 +00:00
|
|
|
format = "pyproject";
|
|
|
|
|
|
|
|
src = fetchFromGitLab {
|
|
|
|
owner = "chrisberkhout";
|
|
|
|
repo = "pricehist";
|
|
|
|
rev = version;
|
2024-07-27 06:49:29 +00:00
|
|
|
hash = "sha256-SBRJxNnA+nOxO6h97WZZHwhxoXeNtb5+rDayn4Hw6so=";
|
2023-10-09 19:29:22 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
requests
|
|
|
|
lxml
|
|
|
|
cssselect
|
|
|
|
curlify
|
|
|
|
poetry-core
|
|
|
|
];
|
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
];
|
|
|
|
|
2023-10-09 19:29:22 +00:00
|
|
|
nativeCheckInputs = [
|
|
|
|
responses
|
|
|
|
pytest-mock
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
2024-04-21 15:54:59 +00:00
|
|
|
|
2023-10-09 19:29:22 +00:00
|
|
|
meta = with lib; {
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Command-line tool for fetching and formatting historical price data, with support for multiple data sources and output formats";
|
2023-10-09 19:29:22 +00:00
|
|
|
homepage = "https://gitlab.com/chrisberkhout/pricehist";
|
|
|
|
license = licenses.mit;
|
|
|
|
mainProgram = "pricehist";
|
|
|
|
maintainers = with maintainers; [ chrpinedo ];
|
|
|
|
};
|
|
|
|
}
|