aboutsummaryrefslogtreecommitdiff
path: root/nixpkgs/pkgs/development/python-modules/webcolors/default.nix
blob: 273cd7ac5d18d7dc1f5423c6f8551c85083fee05 (plain)
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
{ lib
, buildPythonPackage
, fetchPypi
, isPy27
, python
, six
}:

buildPythonPackage rec {
  pname = "webcolors";
  version = "1.11.1";
  disabled = isPy27;

  src = fetchPypi {
    inherit pname version;
    sha256 = "76f360636957d1c976db7466bc71dcb713bb95ac8911944dffc55c01cb516de6";
  };

  propagatedBuildInputs = [ six ];

  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;
  };
}