1
0
Fork 0
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-06-24 18:16:21 +03:00
nixpkgs/pkgs/development/python-modules/cssselect2/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

43 lines
854 B
Nix
Raw Normal View History

{
lib,
buildPythonPackage,
fetchPypi,
flit-core,
pytestCheckHook,
pythonOlder,
tinycss2,
}:
2018-04-07 13:31:54 +02:00
buildPythonPackage rec {
pname = "cssselect2";
version = "0.7.0";
2024-05-20 09:35:14 +02:00
pyproject = true;
disabled = pythonOlder "3.7";
2018-04-07 13:31:54 +02:00
src = fetchPypi {
inherit pname version;
hash = "sha256-HM2YTauJ/GiVUEOspOGwPgzynK2YgPbijjunp0sUqlo=";
2018-04-07 13:31:54 +02:00
};
postPatch = ''
sed -i '/^addopts/d' pyproject.toml
'';
build-system = [ flit-core ];
dependencies = [ tinycss2 ];
2018-04-07 13:31:54 +02:00
nativeCheckInputs = [ pytestCheckHook ];
pythonImportsCheck = [ "cssselect2" ];
2018-04-07 13:31:54 +02:00
meta = with lib; {
description = "CSS selectors for Python ElementTree";
homepage = "https://github.com/Kozea/cssselect2";
2024-05-20 09:35:14 +02:00
changelog = "https://github.com/Kozea/cssselect2/releases/tag/${version}";
2018-04-07 13:31:54 +02:00
license = licenses.bsd3;
2024-05-20 09:35:14 +02:00
maintainers = with maintainers; [ ];
2018-04-07 13:31:54 +02:00
};
}