summary refs log tree commit diff
path: root/pkgs/development/python-modules/cssselect2/default.nix
blob: 25bb35eab2d876deae4f494a1a3c927ab83957eb (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
{ lib
, buildPythonPackage
, pythonOlder
, fetchPypi
, tinycss2
, pytest
, pytest-runner
, pytest-cov
, 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 pytest-runner pytest-cov pytest-flake8 pytest-isort ];

  meta = with lib; {
    description = "CSS selectors for Python ElementTree";
    homepage = "https://github.com/Kozea/cssselect2";
    license = licenses.bsd3;
  };
}