python3Packages.pricehist: move from 'pkgs/by-name' (#506791)

This commit is contained in:
Marcin Serwin
2026-05-08 15:08:25 +00:00
committed by GitHub
3 changed files with 54 additions and 44 deletions
+1 -44
View File
@@ -1,44 +1 @@
{
lib,
python3Packages,
fetchFromGitLab,
}:
python3Packages.buildPythonApplication (finalAttrs: {
pname = "pricehist";
version = "1.4.14";
pyproject = true;
src = fetchFromGitLab {
owner = "chrisberkhout";
repo = "pricehist";
tag = finalAttrs.version;
hash = "sha256-BnyoSYVjs2odnOzSpvgMF860PDkz7tPNnM0s3Fep5G0=";
};
pythonRelaxDeps = [ "lxml" ];
dependencies = with python3Packages; [
requests
lxml
cssselect
curlify
];
build-system = with python3Packages; [
poetry-core
];
nativeCheckInputs = with python3Packages; [
responses
pytest-mock
pytestCheckHook
];
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 = lib.licenses.mit;
mainProgram = "pricehist";
};
})
{ python3Packages }: python3Packages.toPythonApplication python3Packages.pricehist
@@ -0,0 +1,51 @@
{
lib,
fetchFromGitLab,
buildPythonPackage,
cssselect,
curlify,
lxml,
poetry-core,
pytest-mock,
pytestCheckHook,
requests,
responses,
}:
buildPythonPackage (finalAttrs: {
pname = "pricehist";
version = "1.4.14";
pyproject = true;
src = fetchFromGitLab {
owner = "chrisberkhout";
repo = "pricehist";
tag = finalAttrs.version;
hash = "sha256-BnyoSYVjs2odnOzSpvgMF860PDkz7tPNnM0s3Fep5G0=";
};
pythonRelaxDeps = [ "lxml" ];
dependencies = [
requests
lxml
cssselect
curlify
];
build-system = [
poetry-core
];
nativeCheckInputs = [
responses
pytest-mock
pytestCheckHook
];
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 = lib.licenses.mit;
mainProgram = "pricehist";
};
})
+2
View File
@@ -12925,6 +12925,8 @@ self: super: with self; {
price-parser = callPackage ../development/python-modules/price-parser { };
pricehist = callPackage ../development/python-modules/pricehist { };
primecountpy = callPackage ../development/python-modules/primecountpy { };
primepy = callPackage ../development/python-modules/primepy { };