1{
2 lib,
3 buildPythonPackage,
4 fetchPypi,
5 python,
6 isPy27,
7 enum34,
8 attrs,
9 pytz,
10}:
11
12buildPythonPackage rec {
13 pname = "serpent";
14 version = "1.41";
15 format = "setuptools";
16
17 src = fetchPypi {
18 inherit pname version;
19 hash = "sha256-BAcDX+PGZEOH1Iz/FGfVqp/v+BTQc3K3hnftDuPtcJU=";
20 };
21
22 propagatedBuildInputs = lib.optionals isPy27 [ enum34 ];
23
24 nativeCheckInputs = [
25 attrs
26 pytz
27 ];
28 checkPhase = ''
29 ${python.interpreter} setup.py test
30 '';
31
32 meta = with lib; {
33 description = "Simple serialization library based on ast.literal_eval";
34 homepage = "https://github.com/irmen/Serpent";
35 license = licenses.mit;
36 maintainers = with maintainers; [ prusnak ];
37 };
38}