ansible-later: 2.0.22 -> 2.0.23
[NixPkgs.git] / pkgs / development / python-modules / tinycss2 / default.nix
blob8d6d457d31a68bfe28ab85beef930122fdca46f1
1 { lib
2 , buildPythonPackage
3 , pythonOlder
4 , fetchFromGitHub
5 , webencodings
6 , pytestCheckHook
7 , flit-core
8 }:
10 buildPythonPackage rec {
11   pname = "tinycss2";
12   version = "1.1.1";
13   format = "flit";
15   disabled = pythonOlder "3.6";
17   src = fetchFromGitHub {
18     owner = "kozea";
19     repo = "tinycss2";
20     rev = "v${version}";
21     # for tests
22     fetchSubmodules = true;
23     sha256 = "sha256-RUF/3cjNgDFofoxl9iKY3u5ZAVVQmXu2Qbb5U4brdcQ=";
24   };
26   postPatch = ''
27     substituteInPlace pyproject.toml \
28       --replace "'pytest-cov', 'pytest-flake8', 'pytest-isort', 'coverage[toml]'" "" \
29       --replace "--isort --flake8 --cov --no-cov-on-fail" ""
30   '';
32   nativeBuildInputs = [ flit-core ];
34   propagatedBuildInputs = [ webencodings ];
36   checkInputs = [ pytestCheckHook ];
38   meta = with lib; {
39     description = "Low-level CSS parser for Python";
40     homepage = "https://github.com/Kozea/tinycss2";
41     license = licenses.bsd3;
42     maintainers = with maintainers; [ onny ];
43   };