1{
2 lib,
3 buildPythonPackage,
4 fetchPypi,
5 pythonOlder,
6 unittestCheckHook,
7 pdm-backend,
8}:
9
10buildPythonPackage rec {
11 pname = "webcolors";
12 version = "24.11.1";
13 pyproject = true;
14
15 disabled = pythonOlder "3.9";
16
17 src = fetchPypi {
18 inherit pname version;
19 hash = "sha256-7LPXaPMiAq93BHe4tl8xj6T1ZsIpSGc6l3sA1YndgPY=";
20 };
21
22 build-system = [ pdm-backend ];
23
24 nativeCheckInputs = [ unittestCheckHook ];
25
26 unittestFlagsArray = [
27 "-s"
28 "tests"
29 ];
30
31 pythonImportsCheck = [ "webcolors" ];
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 = [ ];
38 };
39}