python3Packages.price-parser: init at 0.4.0

Apply suggestion from @uninsane

Co-authored-by: Colin <accounts.github@uninsane.org>
This commit is contained in:
Thane Gill
2025-10-10 14:25:28 -07:00
co-authored by Colin
parent f5ec4b277f
commit dcbdd66331
2 changed files with 41 additions and 0 deletions
@@ -0,0 +1,39 @@
{
lib,
buildPythonPackage,
fetchFromGitHub,
pytestCheckHook,
setuptools,
pytest-cov,
attrs,
}:
buildPythonPackage rec {
pname = "price-parser";
version = "0.4.0";
format = "setuptools";
src = fetchFromGitHub {
owner = "scrapinghub";
repo = "price-parser";
tag = version;
hash = "sha256-9f/+Yw94SVvg9fl9zYR9YEMwAgKHwySG5cysPMomnA0=";
};
dependencies = [ attrs ];
nativeCheckInputs = [
pytestCheckHook
pytest-cov
];
pythonImportsCheck = [ "price_parser" ];
meta = {
description = "Extract price amount and currency symbol from a raw text string";
homepage = "https://github.com/scrapinghub/price-parser";
changelog = "https://github.com/scrapinghub/price-parser/blob/${version}/CHANGES.rst";
license = lib.licenses.bsd3;
maintainers = with lib.maintainers; [ thanegill ];
};
}
+2
View File
@@ -12151,6 +12151,8 @@ self: super: with self; {
prettytable = callPackage ../development/python-modules/prettytable { };
price-parser = callPackage ../development/python-modules/price-parser { };
primecountpy = callPackage ../development/python-modules/primecountpy { };
primepy = callPackage ../development/python-modules/primepy { };