python3Packages.cssselect2: build using flit-core

This commit is contained in:
Martin Weinelt 2022-03-09 16:56:53 +01:00
parent e6ccf2a707
commit 1c14120c30

View File

@ -1,5 +1,6 @@
{ lib
, buildPythonPackage
, flit-core
, pythonOlder
, fetchPypi
, tinycss2
@ -9,6 +10,7 @@
buildPythonPackage rec {
pname = "cssselect2";
version = "0.5.0";
format = "pyproject";
disabled = pythonOlder "3.5";
src = fetchPypi {
@ -20,6 +22,10 @@ buildPythonPackage rec {
sed -i '/^addopts/d' pyproject.toml
'';
nativeBuildInputs = [
flit-core
];
propagatedBuildInputs = [ tinycss2 ];
checkInputs = [ pytestCheckHook ];