nixpkgs/pkgs/development/python-modules/webcolors/default.nix

31 lines
641 B
Nix
Raw Normal View History

2018-02-03 15:03:42 +01:00
{ lib
, buildPythonPackage
, fetchPypi
, isPy27
2018-02-03 15:03:42 +01:00
, python
2019-10-24 08:47:51 +02:00
, six
2018-02-03 15:03:42 +01:00
}:
buildPythonPackage rec {
pname = "webcolors";
2020-06-06 08:47:36 +02:00
version = "1.11.1";
disabled = isPy27;
2018-02-03 15:03:42 +01:00
src = fetchPypi {
inherit pname version;
2020-06-06 08:47:36 +02:00
sha256 = "76f360636957d1c976db7466bc71dcb713bb95ac8911944dffc55c01cb516de6";
2018-02-03 15:03:42 +01:00
};
2019-10-24 08:47:51 +02:00
propagatedBuildInputs = [ six ];
2018-02-03 15:03:42 +01:00
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/";
2018-02-03 15:03:42 +01:00
license = lib.licenses.bsd3;
};
2019-10-24 08:47:51 +02:00
}