Commit dcbdd663 authored by Thane Gill's avatar Thane Gill
Browse files

python3Packages.price-parser: init at 0.4.0



Apply suggestion from @uninsane

Co-authored-by: default avatarColin <accounts.github@uninsane.org>
parent f5ec4b27
Loading
Loading
Loading
Loading
+39 −0
Original line number Diff line number Diff line
{
  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 −0
Original line number Diff line number Diff line
@@ -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 { };