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

View File

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