python3Packages.pyquery: refactor, fix license

+6 -12
+6 -12
pkgs/development/python-modules/pyquery/default.nix
··· 5 5 fetchPypi, 6 6 lxml, 7 7 pytestCheckHook, 8 - pythonOlder, 9 8 requests, 9 + setuptools, 10 10 webob, 11 11 webtest, 12 12 }: ··· 14 14 buildPythonPackage rec { 15 15 pname = "pyquery"; 16 16 version = "2.0.1"; 17 - disabled = pythonOlder "3.7"; 18 - 19 - format = "setuptools"; 17 + pyproject = true; 20 18 21 19 src = fetchPypi { 22 20 inherit pname version; 23 21 hash = "sha256-AZS7JwaxLQN9sSxRko/p67NrctnnGVZdq6WmxZUyL68="; 24 22 }; 25 23 26 - # https://github.com/gawel/pyquery/issues/248 27 - postPatch = '' 28 - substituteInPlace tests/test_pyquery.py \ 29 - --replace test_selector_html skip_test_selector_html 30 - ''; 24 + build-system = [ setuptools ]; 31 25 32 - propagatedBuildInputs = [ 26 + dependencies = [ 33 27 cssselect 34 28 lxml 35 29 ]; ··· 38 32 39 33 pythonImportsCheck = [ "pyquery" ]; 40 34 41 - checkInputs = [ 35 + nativeCheckInputs = [ 42 36 pytestCheckHook 43 37 requests 44 38 webob ··· 68 62 description = "Jquery-like library for Python"; 69 63 homepage = "https://github.com/gawel/pyquery"; 70 64 changelog = "https://github.com/gawel/pyquery/blob/${version}/CHANGES.rst"; 71 - license = licenses.bsd0; 65 + license = licenses.bsd3; 72 66 }; 73 67 }