depot/third_party/nixpkgs/pkgs/development/python-modules/serpent/default.nix
Default email 02cf88bb76 Project import generated by Copybara.
GitOrigin-RevId: c4a0efdd5a728e20791b8d8d2f26f90ac228ee8d
2022-08-12 15:06:08 +03:00

33 lines
666 B
Nix

{ lib
, buildPythonPackage
, fetchPypi
, python
, isPy27
, enum34
, attrs
, pytz
}:
buildPythonPackage rec {
pname = "serpent";
version = "1.41";
src = fetchPypi {
inherit pname version;
sha256 = "sha256-BAcDX+PGZEOH1Iz/FGfVqp/v+BTQc3K3hnftDuPtcJU=";
};
propagatedBuildInputs = lib.optionals isPy27 [ enum34 ];
checkInputs = [ attrs pytz ];
checkPhase = ''
${python.interpreter} setup.py test
'';
meta = with lib; {
description = "A simple serialization library based on ast.literal_eval";
homepage = "https://github.com/irmen/Serpent";
license = licenses.mit;
maintainers = with maintainers; [ prusnak ];
};
}