pricehist: migrate to by-name (#427757)

This commit is contained in:
Weijia Wang 2025-08-02 20:41:34 -06:00 committed by GitHub
commit f3d73be401
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 11 additions and 21 deletions

View File

@ -1,18 +1,10 @@
{
lib,
buildPythonApplication,
python3Packages,
fetchFromGitLab,
requests,
lxml,
cssselect,
curlify,
poetry-core,
pytest-mock,
responses,
pytestCheckHook,
}:
buildPythonApplication rec {
python3Packages.buildPythonApplication rec {
pname = "pricehist";
version = "1.4.7";
format = "pyproject";
@ -20,32 +12,32 @@ buildPythonApplication rec {
src = fetchFromGitLab {
owner = "chrisberkhout";
repo = "pricehist";
rev = version;
tag = version;
hash = "sha256-SBRJxNnA+nOxO6h97WZZHwhxoXeNtb5+rDayn4Hw6so=";
};
propagatedBuildInputs = [
dependencies = with python3Packages; [
requests
lxml
cssselect
curlify
];
build-system = with python3Packages; [
poetry-core
];
nativeBuildInputs = [
];
nativeCheckInputs = [
nativeCheckInputs = with python3Packages; [
responses
pytest-mock
pytestCheckHook
];
meta = with lib; {
meta = {
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;
license = lib.licenses.mit;
mainProgram = "pricehist";
maintainers = with maintainers; [ chrpinedo ];
maintainers = with lib.maintainers; [ chrpinedo ];
};
}

View File

@ -1123,8 +1123,6 @@ with pkgs;
withUsdView = true;
};
pricehist = python3Packages.callPackage ../tools/misc/pricehist { };
py7zr = with python3Packages; toPythonApplication py7zr;
qFlipper = libsForQt5.callPackage ../tools/misc/qflipper { };