1{
2 lib,
3 buildPythonApplication,
4 fetchFromGitLab,
5 requests,
6 lxml,
7 cssselect,
8 curlify,
9 poetry-core,
10 pytest-mock,
11 responses,
12 pytestCheckHook,
13}:
14
15buildPythonApplication rec {
16 pname = "pricehist";
17 version = "1.4.7";
18 format = "pyproject";
19
20 src = fetchFromGitLab {
21 owner = "chrisberkhout";
22 repo = "pricehist";
23 rev = version;
24 hash = "sha256-SBRJxNnA+nOxO6h97WZZHwhxoXeNtb5+rDayn4Hw6so=";
25 };
26
27 propagatedBuildInputs = [
28 requests
29 lxml
30 cssselect
31 curlify
32 poetry-core
33 ];
34
35 nativeBuildInputs = [
36 ];
37
38 nativeCheckInputs = [
39 responses
40 pytest-mock
41 pytestCheckHook
42 ];
43
44 meta = with lib; {
45 description = "Command-line tool for fetching and formatting historical price data, with support for multiple data sources and output formats";
46 homepage = "https://gitlab.com/chrisberkhout/pricehist";
47 license = licenses.mit;
48 mainProgram = "pricehist";
49 maintainers = with maintainers; [ chrpinedo ];
50 };
51}