summary refs log tree commit diff
path: root/pkgs/development/python-modules/webcolors/default.nix
blob: ccd4163492f18fdac78d199d4997b8e0fea5679b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
{ lib
, buildPythonPackage
, fetchPypi
, pythonOlder
, python
}:

buildPythonPackage rec {
  pname = "webcolors";
  version = "1.12";
  format = "setuptools";

  disabled = pythonOlder "3.7";

  src = fetchPypi {
    inherit pname version;
    hash = "sha256-FtBD06CP1qGxt+Pp5iZA0JeQ3OgNK91HkqF1s1/nlKk=";
  };

  checkPhase = ''
    ${python.interpreter} -m unittest discover -s tests
  '';

  pythonImportsCheck = [
    "webcolors"
  ];

  meta = with lib; {
    description = "Library for working with color names/values defined by the HTML and CSS specifications";
    homepage = "https://github.com/ubernostrum/webcolors";
    license = licenses.bsd3;
    maintainers = with maintainers; [ ];
  };
}