From 9d0884c2886773335de3740fd282815617b5b98c Mon Sep 17 00:00:00 2001 From: Mario Rodas Date: Fri, 18 Nov 2022 04:20:00 +0000 Subject: [PATCH] python310Packages.cssselect: 1.1.0 -> 1.2.0 https://github.com/scrapy/cssselect/raw/v1.2.0/CHANGES --- .../python-modules/cssselect/default.nix | 35 ++++++++++++++++--- 1 file changed, 30 insertions(+), 5 deletions(-) diff --git a/pkgs/development/python-modules/cssselect/default.nix b/pkgs/development/python-modules/cssselect/default.nix index 04b6dc36afab..3ca8f8d20416 100644 --- a/pkgs/development/python-modules/cssselect/default.nix +++ b/pkgs/development/python-modules/cssselect/default.nix @@ -1,17 +1,42 @@ -{ lib, buildPythonPackage, fetchPypi }: +{ lib +, buildPythonPackage +, fetchPypi +, pythonOlder +, setuptools +, pytestCheckHook +, lxml +}: buildPythonPackage rec { pname = "cssselect"; - version = "1.1.0"; + version = "1.2.0"; + format = "pyproject"; + + disabled = pythonOlder "3.7"; src = fetchPypi { inherit pname version; - sha256 = "f95f8dedd925fd8f54edb3d2dfb44c190d9d18512377d3c1e2388d16126879bc"; + sha256 = "666b19839cfaddb9ce9d36bfe4c969132c647b92fc9088c4e23f786b30f1b3dc"; }; - # AttributeError: 'module' object has no attribute 'tests' - doCheck = false; + nativeBuildInputs = [ + setuptools + ]; + + checkInputs = [ + pytestCheckHook + lxml + ]; + + pythonImportsCheck = [ + "cssselect" + ]; meta = with lib; { + description = "CSS Selectors for Python"; + homepage = "https://cssselect.readthedocs.io/"; + changelog = "https://github.com/scrapy/cssselect/v${version}//CHANGES"; + license = licenses.bsd3; + maintainers = with maintainers; [ ]; }; }