mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-26 07:34:11 +00:00
33afbf39f6
checkInputs used to be added to nativeBuildInputs. Now we have nativeCheckInputs to do that instead. Doing this treewide change allows to keep hashes identical to before the introduction of nativeCheckInputs.
41 lines
750 B
Nix
41 lines
750 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, flit-core
|
|
, pythonOlder
|
|
, fetchPypi
|
|
, tinycss2
|
|
, pytestCheckHook
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "cssselect2";
|
|
version = "0.7.0";
|
|
format = "pyproject";
|
|
disabled = pythonOlder "3.5";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "sha256-HM2YTauJ/GiVUEOspOGwPgzynK2YgPbijjunp0sUqlo=";
|
|
};
|
|
|
|
postPatch = ''
|
|
sed -i '/^addopts/d' pyproject.toml
|
|
'';
|
|
|
|
nativeBuildInputs = [
|
|
flit-core
|
|
];
|
|
|
|
propagatedBuildInputs = [ tinycss2 ];
|
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
|
|
|
pythonImportsCheck = [ "cssselect2" ];
|
|
|
|
meta = with lib; {
|
|
description = "CSS selectors for Python ElementTree";
|
|
homepage = "https://github.com/Kozea/cssselect2";
|
|
license = licenses.bsd3;
|
|
};
|
|
}
|