nixpkgs/pkgs/development/python-modules/cssselect2/default.nix

33 lines
665 B
Nix
Raw Normal View History

{ lib
, buildPythonPackage
, pythonOlder
, fetchPypi
, tinycss2
, pytest
, pytest-runner
, pytest-cov
2020-06-23 15:44:12 +00:00
, pytest-flake8
, pytest-isort
}:
2018-04-07 11:31:54 +00:00
buildPythonPackage rec {
pname = "cssselect2";
version = "0.4.1";
disabled = pythonOlder "3.5";
2018-04-07 11:31:54 +00:00
src = fetchPypi {
inherit pname version;
sha256 = "93fbb9af860e95dd40bf18c3b2b6ed99189a07c0f29ba76f9c5be71344664ec8";
2018-04-07 11:31:54 +00:00
};
propagatedBuildInputs = [ tinycss2 ];
2018-04-07 11:31:54 +00:00
checkInputs = [ pytest pytest-runner pytest-cov pytest-flake8 pytest-isort ];
2018-04-07 11:31:54 +00:00
meta = with lib; {
description = "CSS selectors for Python ElementTree";
homepage = "https://github.com/Kozea/cssselect2";
2018-04-07 11:31:54 +00:00
license = licenses.bsd3;
};
}