Merge pull request #119126 from fabaff/pycomfoconnect
[NixPkgs.git] / pkgs / development / python-modules / serpent / default.nix
blob50f6e0b63a6398d8d2daaad8e1dc31950ee10502
1 { lib
2 , buildPythonPackage
3 , fetchPypi
4 , python
5 , isPy27
6 , enum34
7 , attrs
8 , pytz
9 }:
11 buildPythonPackage rec {
12   pname = "serpent";
13   version = "1.30.2";
15   src = fetchPypi {
16     inherit pname version;
17     sha256 = "72753820246a7d8486e8b385353e3bbf769abfceec2e850fa527a288b084ff7a";
18   };
20   propagatedBuildInputs = lib.optionals isPy27 [ enum34 ];
22   checkInputs = [ attrs pytz ];
23   checkPhase = ''
24     ${python.interpreter} setup.py test
25   '';
27   meta = with lib; {
28     description = "A simple serialization library based on ast.literal_eval";
29     homepage = "https://github.com/irmen/Serpent";
30     license = licenses.mit;
31     maintainers = with maintainers; [ prusnak ];
32     };