2021-01-10 23:54:33 -08:00
|
|
|
{ lib, stdenv
|
2018-10-16 11:27:29 -07:00
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, isPy3k
|
|
|
|
, isPyPy
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "enum";
|
2018-10-24 06:16:45 -07:00
|
|
|
version = "0.4.7";
|
2018-10-16 11:27:29 -07:00
|
|
|
disabled = isPy3k;
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2018-10-24 06:16:45 -07:00
|
|
|
sha256 = "001iq0yqs9f5bslvl793bhkcs71k5km9kv8yrj5h0lfsgrcg6z4c";
|
2018-10-16 11:27:29 -07:00
|
|
|
};
|
|
|
|
|
|
|
|
doCheck = !isPyPy;
|
|
|
|
|
2021-01-10 23:54:33 -08:00
|
|
|
meta = with lib; {
|
2020-03-31 18:11:51 -07:00
|
|
|
homepage = "https://pypi.python.org/pypi/enum/";
|
2018-10-16 11:27:29 -07:00
|
|
|
description = "Robust enumerated type support in Python";
|
|
|
|
license = licenses.gpl2;
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|