depot/third_party/nixpkgs/pkgs/tools/misc/pricehist/default.nix
Default email 5e7c2d6cef Project import generated by Copybara.
GitOrigin-RevId: f99e5f03cc0aa231ab5950a15ed02afec45ed51a
2023-10-09 21:29:22 +02:00

46 lines
945 B
Nix

{ lib
, buildPythonApplication
, fetchFromGitLab
, requests
, lxml
, cssselect
, curlify
, poetry-core
, pytest-mock
, responses
, pytestCheckHook
}:
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
];
nativeCheckInputs = [
responses
pytest-mock
pytestCheckHook
];
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 ];
};
}