mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-12 00:33:10 +00:00
33 lines
661 B
Nix
33 lines
661 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, pythonOlder
|
|
, fetchPypi
|
|
, tinycss2
|
|
, pytest
|
|
, pytestrunner
|
|
, pytestcov
|
|
, pytest-flake8
|
|
, pytest-isort
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "cssselect2";
|
|
version = "0.4.1";
|
|
disabled = pythonOlder "3.5";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "93fbb9af860e95dd40bf18c3b2b6ed99189a07c0f29ba76f9c5be71344664ec8";
|
|
};
|
|
|
|
propagatedBuildInputs = [ tinycss2 ];
|
|
|
|
checkInputs = [ pytest pytestrunner pytestcov pytest-flake8 pytest-isort ];
|
|
|
|
meta = with lib; {
|
|
description = "CSS selectors for Python ElementTree";
|
|
homepage = "https://github.com/Kozea/cssselect2";
|
|
license = licenses.bsd3;
|
|
};
|
|
}
|