nixpkgs-suyu/pkgs/development/python-modules/cssutils/default.nix

53 lines
1,005 B
Nix
Raw Normal View History

{ lib
, buildPythonPackage
2021-03-12 19:11:58 +01:00
, pythonOlder
, fetchPypi
2021-03-12 19:11:58 +01:00
, setuptools-scm
, toml
, importlib-metadata
, mock
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "cssutils";
2021-03-12 19:11:58 +01:00
version = "2.2.0";
2021-03-12 19:11:58 +01:00
disabled = pythonOlder "3.6";
src = fetchPypi {
inherit pname version;
2021-03-12 19:11:58 +01:00
sha256 = "5bef59f6b59bdccbea8e36cb292d2be1b6be1b485fc4a9f5886616f19eb31aaf";
};
2021-03-12 19:11:58 +01:00
nativeBuildInputs = [
setuptools-scm
toml
];
propagatedBuildInputs = lib.optionals (pythonOlder "3.8") [
importlib-metadata
];
checkInputs = [
mock
pytestCheckHook
];
disabledTests = [
2021-03-12 19:11:58 +01:00
# access network
"test_parseUrl"
"encutils"
];
pythonImportsCheck = [ "cssutils" ];
meta = with lib; {
description = "A CSS Cascading Style Sheets library for Python";
homepage = "https://github.com/jaraco/cssutils";
changelog = "https://github.com/jaraco/cssutils/blob/v${version}/CHANGES.rst";
license = licenses.lgpl3Plus;
maintainers = with maintainers; [ dotlambda ];
};
}