1
0
Fork 0
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-07-04 23:02:38 +03:00
nixpkgs/pkgs/development/python-modules/tinycss2/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

45 lines
982 B
Nix
Raw Normal View History

{ lib
, buildPythonPackage
, pythonOlder
, fetchFromGitHub
, webencodings
, pytestCheckHook
, flit-core
}:
2018-04-07 13:23:09 +02:00
buildPythonPackage rec {
pname = "tinycss2";
version = "1.1.1";
format = "flit";
2018-04-07 13:23:09 +02:00
disabled = pythonOlder "3.6";
src = fetchFromGitHub {
owner = "kozea";
repo = "tinycss2";
rev = "v${version}";
# for tests
fetchSubmodules = true;
sha256 = "sha256-RUF/3cjNgDFofoxl9iKY3u5ZAVVQmXu2Qbb5U4brdcQ=";
2018-04-07 13:23:09 +02:00
};
postPatch = ''
substituteInPlace pyproject.toml \
--replace "'pytest-cov', 'pytest-flake8', 'pytest-isort', 'coverage[toml]'" "" \
--replace "--isort --flake8 --cov --no-cov-on-fail" ""
2020-06-22 20:45:34 -04:00
'';
nativeBuildInputs = [ flit-core ];
propagatedBuildInputs = [ webencodings ];
checkInputs = [ pytestCheckHook ];
2018-04-07 13:23:09 +02:00
meta = with lib; {
description = "Low-level CSS parser for Python";
homepage = "https://github.com/Kozea/tinycss2";
2018-04-07 13:23:09 +02:00
license = licenses.bsd3;
maintainers = with maintainers; [ onny ];
2018-04-07 13:23:09 +02:00
};
}