summary refs log tree commit diff
path: root/pkgs/development/python-modules/serpent/default.nix
blob: 5ea59eb6a2a39d767489ebce90b91b8bf0ab5e10 (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
28
29
30
31
32
33
34
{ stdenv
, buildPythonPackage
, fetchPypi
, lib
, python
, isPy27
, isPy33
, enum34
}:

buildPythonPackage rec {

  name = "${pname}-${version}";
  pname = "serpent";
  version = "1.27";

  src = fetchPypi {
    inherit pname version;
    sha256 = "6f8dc4317fb5b5a9629b5e518846bc9fee374b8171533726dc68df52b36ee912";
  };

  propagatedBuildInputs = lib.optionals (isPy27 || isPy33) [ enum34 ];

  checkPhase = ''
    ${python.interpreter} setup.py test
  '';

  meta = with stdenv.lib; {
    description = "A simple serialization library based on ast.literal_eval";
    homepage = https://github.com/irmen/Serpent;
    license = licenses.mit;
    maintainers = with maintainers; [ prusnak ];
    };
}