linux_xanmod: 5.11.14 -> 5.11.15
[NixPkgs.git] / pkgs / development / python-modules / enum34 / default.nix
blob91f54dc99cbf62e5eab116566c0df529c73ea662
1 { lib
2 , buildPythonPackage
3 , fetchPypi
4 , pythonAtLeast
5 , python
6 }:
8 if pythonAtLeast "3.4" then null else buildPythonPackage rec {
9   pname = "enum34";
10   version = "1.1.10";
12   src = fetchPypi {
13     inherit pname version;
14     sha256 = "cce6a7477ed816bd2542d03d53db9f0db935dd013b70f336a95c73979289f248";
15   };
17   checkPhase = ''
18     ${python.interpreter} -m unittest discover
19   '';
21   meta = with lib; {
22     homepage = "https://pypi.python.org/pypi/enum34";
23     description = "Python 3.4 Enum backported to 3.3, 3.2, 3.1, 2.7, 2.6, 2.5, and 2.4";
24     license = licenses.bsd0;
25   };