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:
@@ -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 ];
|
||||
};
|
||||
}
|
||||
@@ -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 { };
|
||||
|
||||
Reference in New Issue
Block a user