diff --git a/pkgs/development/python-modules/panzi-json-logic/default.nix b/pkgs/development/python-modules/panzi-json-logic/default.nix index 292c42f14a1d..28a8ee0a38fd 100644 --- a/pkgs/development/python-modules/panzi-json-logic/default.nix +++ b/pkgs/development/python-modules/panzi-json-logic/default.nix @@ -2,6 +2,7 @@ lib, buildPythonPackage, fetchFromGitHub, + gitUpdater, unittestCheckHook, setuptools, }: @@ -24,6 +25,8 @@ buildPythonPackage rec { pythonImportsCheck = [ "json_logic" ]; + passthru.updateScript = gitUpdater { }; + meta = { description = "Pure Python 3 JsonLogic and CertLogic implementation."; homepage = "https://github.com/panzi/panzi-json-logic"; diff --git a/pkgs/development/python-modules/price-parser/default.nix b/pkgs/development/python-modules/price-parser/default.nix index c2baaced3afb..ecbed54a7c36 100644 --- a/pkgs/development/python-modules/price-parser/default.nix +++ b/pkgs/development/python-modules/price-parser/default.nix @@ -2,16 +2,17 @@ lib, buildPythonPackage, fetchFromGitHub, + gitUpdater, pytestCheckHook, setuptools, - pytest-cov, + pytest-cov-stub, attrs, }: buildPythonPackage rec { pname = "price-parser"; version = "0.4.0"; - format = "setuptools"; + pyproject = true; src = fetchFromGitHub { owner = "scrapinghub"; @@ -20,15 +21,19 @@ buildPythonPackage rec { hash = "sha256-9f/+Yw94SVvg9fl9zYR9YEMwAgKHwySG5cysPMomnA0="; }; + build-system = [ setuptools ]; + dependencies = [ attrs ]; nativeCheckInputs = [ pytestCheckHook - pytest-cov + pytest-cov-stub ]; pythonImportsCheck = [ "price_parser" ]; + passthru.updateScript = gitUpdater { }; + meta = { description = "Extract price amount and currency symbol from a raw text string"; homepage = "https://github.com/scrapinghub/price-parser"; diff --git a/pkgs/development/python-modules/pyppeteer-ng/default.nix b/pkgs/development/python-modules/pyppeteer-ng/default.nix index 8894038470e9..b6e4e1165b84 100644 --- a/pkgs/development/python-modules/pyppeteer-ng/default.nix +++ b/pkgs/development/python-modules/pyppeteer-ng/default.nix @@ -4,6 +4,7 @@ aiohttp, appdirs, buildPythonPackage, + gitUpdater, certifi, diff-match-patch, fetchFromGitHub, @@ -21,7 +22,7 @@ pyee, pylint, pytest, - pytest-cov, + pytest-cov-stub, pytest-timeout, pytest-xdist, pytestCheckHook, @@ -43,8 +44,6 @@ buildPythonPackage rec { version = "2.0.0rc10"; pyproject = true; - disabled = pythonOlder "3.8"; - src = fetchFromGitHub { owner = "dgtlmoon"; repo = "pyppeteer-ng"; @@ -96,7 +95,7 @@ buildPythonPackage rec { pydocstyle pylint pytest - pytest-cov + pytest-cov-stub pytest-timeout pytest-xdist readme-renderer @@ -149,6 +148,8 @@ buildPythonPackage rec { pythonImportsCheck = [ "pyppeteer" ]; + passthru.updateScript = gitUpdater { }; + meta = { description = "Headless chrome/chromium automation library (unofficial port of puppeteer)"; mainProgram = "pyppeteer-install";