mirror of
https://github.com/SebastianWendel/nixpkgs.git
synced 2024-10-19 12:13:19 +02:00
31 lines
641 B
Nix
31 lines
641 B
Nix
{ 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;
|
|
};
|
|
}
|