1{ lib
2, buildPythonPackage
3, fetchPypi
4, pythonOlder
5, unittestCheckHook
6, setuptools
7}:
8
9buildPythonPackage rec {
10 pname = "webcolors";
11 version = "1.13";
12 format = "pyproject";
13
14 disabled = pythonOlder "3.7";
15
16 src = fetchPypi {
17 inherit pname version;
18 hash = "sha256-wiW2dMg/qSO+k9I1MwzgMANz0CiFzvIyOIE7DVZoMEo=";
19 };
20
21 nativeBuildInputs = [
22 setuptools
23 ];
24
25 nativeCheckInputs = [ unittestCheckHook ];
26
27 unittestFlagsArray = [ "-s" "tests" ];
28
29 pythonImportsCheck = [
30 "webcolors"
31 ];
32
33 meta = with lib; {
34 description = "Library for working with color names/values defined by the HTML and CSS specifications";
35 homepage = "https://github.com/ubernostrum/webcolors";
36 license = licenses.bsd3;
37 maintainers = with maintainers; [ ];
38 };
39}