mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-23 14:13:35 +00:00
5356420466
$ find -type f -name '*.nix' -print0 | xargs -P "$(nproc)" -0 sed -i \ -e 's!with lib.maintainers; \[ *\];![ ];!' \ -e 's!with maintainers; \[ *\];![ ];!'
54 lines
1.2 KiB
Nix
54 lines
1.2 KiB
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
cssutils,
|
|
cython,
|
|
fetchPypi,
|
|
pytestCheckHook,
|
|
pythonOlder,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "tinycss";
|
|
version = "0.4";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-EjBvtQ5enn6u74S4Au2HdIi6gONcZyhn9UjAkkp2cW4=";
|
|
};
|
|
|
|
postPatch = ''
|
|
sed -i "/--cov/d" setup.cfg
|
|
'';
|
|
|
|
nativeBuildInputs = [ cython ];
|
|
|
|
propagatedBuildInputs = [ cssutils ];
|
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
|
|
|
preBuild = ''
|
|
# Force Cython to re-generate this file. If it is present, Cython will
|
|
# think it is "up to date" even though it was generated with an older,
|
|
# incompatible version of Cython. See
|
|
# https://github.com/Kozea/tinycss/issues/17.
|
|
rm tinycss/speedups.c
|
|
'';
|
|
|
|
# Disable Cython tests
|
|
TINYCSS_SKIP_SPEEDUPS_TESTS = true;
|
|
|
|
pythonImportsCheck = [ "tinycss" ];
|
|
|
|
meta = with lib; {
|
|
description = "Complete yet simple CSS parser for Python";
|
|
homepage = "https://tinycss.readthedocs.io";
|
|
changelog = "https://github.com/Kozea/tinycss/releases/tag/v${version}";
|
|
license = licenses.bsd3;
|
|
maintainers = [ ];
|
|
};
|
|
}
|