summary refs log tree commit diff
path: root/pkgs/development/python-modules/enum34/default.nix
blob: a5175eba49d8798b546a67ae1558db0a50f78161 (plain) (blame)
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
{ stdenv
, buildPythonPackage
, fetchPypi
, pythonAtLeast
, python
}:

if pythonAtLeast "3.4" then null else buildPythonPackage rec {
  pname = "enum34";
  version = "1.1.6";

  src = fetchPypi {
    inherit pname version;
    sha256 = "8ad8c4783bf61ded74527bffb48ed9b54166685e4230386a9ed9b1279e2df5b1";
  };

  checkPhase = ''
    ${python.interpreter} -m unittest discover
  '';

  meta = with stdenv.lib; {
    homepage = https://pypi.python.org/pypi/enum34;
    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;
  };

}