depot/third_party/nixpkgs/pkgs/development/python-modules/serpent/default.nix
Default email bcb2f287e1 Project import generated by Copybara.
GitOrigin-RevId: d603719ec6e294f034936c0d0dc06f689d91b6c3
2024-06-20 20:27:18 +05:30

38 lines
711 B
Nix

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