summary refs log tree commit diff
path: root/pkgs/development/python-modules/webcolors/default.nix
blob: d530eda39d9758e0902c4b4dccc8ad27ee2ea4de (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
{ lib
, buildPythonPackage
, fetchPypi
, python
}:

buildPythonPackage rec {
  pname = "webcolors";
  version = "1.8.1";

  src = fetchPypi {
    inherit pname version;
    sha256 = "030562f624467a9901f0b455fef05486a88cfb5daa1e356bd4aacea043850b59";
  };

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

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