1
0
Fork 0
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-07-03 22:32:26 +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.

41 lines
744 B
Nix
Raw Normal View History

{ lib
, buildPythonPackage
, flit-core
, pythonOlder
, fetchPypi
, tinycss2
, pytestCheckHook
}:
2018-04-07 13:31:54 +02:00
buildPythonPackage rec {
pname = "cssselect2";
version = "0.7.0";
format = "pyproject";
disabled = pythonOlder "3.5";
2018-04-07 13:31:54 +02:00
src = fetchPypi {
inherit pname version;
sha256 = "sha256-HM2YTauJ/GiVUEOspOGwPgzynK2YgPbijjunp0sUqlo=";
2018-04-07 13:31:54 +02:00
};
postPatch = ''
sed -i '/^addopts/d' pyproject.toml
'';
nativeBuildInputs = [
flit-core
];
propagatedBuildInputs = [ tinycss2 ];
2018-04-07 13:31:54 +02:00
checkInputs = [ 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";
2018-04-07 13:31:54 +02:00
license = licenses.bsd3;
};
}