1{ stdenv
2, buildPythonPackage
3, fetchPypi
4, lib
5, python
6, six
7}:
8
9buildPythonPackage rec {
10
11 name = "${pname}-${version}";
12 pname = "selectors34";
13 version = "1.2";
14
15 src = fetchPypi {
16 inherit pname version;
17 sha256 = "09f5066337f8a76fb5233f267873f89a27a17c10bf79575954894bb71686451c";
18 };
19
20 propagatedBuildInputs = [ six ];
21
22 checkPhase = ''
23 ${python.interpreter} setup.py test
24 '';
25
26 meta = with stdenv.lib; {
27 description = "A backport of the selectors module from Python 3.4";
28 homepage = https://github.com/berkerpeksag/selectors34;
29 license = licenses.psfl;
30 maintainers = with maintainers; [ prusnak ];
31 };
32}