2021-01-25 09:26:54 +01:00
|
|
|
{ lib
|
2018-10-16 20:30:03 +02:00
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, pythonAtLeast
|
|
|
|
, python
|
|
|
|
}:
|
|
|
|
|
|
|
|
if pythonAtLeast "3.4" then null else buildPythonPackage rec {
|
|
|
|
pname = "enum34";
|
2020-05-09 12:01:47 +02:00
|
|
|
version = "1.1.10";
|
2018-10-16 20:30:03 +02:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-05-09 12:01:47 +02:00
|
|
|
sha256 = "cce6a7477ed816bd2542d03d53db9f0db935dd013b70f336a95c73979289f248";
|
2018-10-16 20:30:03 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
${python.interpreter} -m unittest discover
|
|
|
|
'';
|
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://pypi.python.org/pypi/enum34";
|
2018-10-16 20:30:03 +02:00
|
|
|
description = "Python 3.4 Enum backported to 3.3, 3.2, 3.1, 2.7, 2.6, 2.5, and 2.4";
|
|
|
|
license = licenses.bsd0;
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|