depot/third_party/nixpkgs/pkgs/development/python-modules/serpent/default.nix
Default email 504525a148 Project import generated by Copybara.
GitOrigin-RevId: bd645e8668ec6612439a9ee7e71f7eac4099d4f6
2024-01-02 12:29:13 +01:00

34 lines
695 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 = "A simple serialization library based on ast.literal_eval";
homepage = "https://github.com/irmen/Serpent";
license = licenses.mit;
maintainers = with maintainers; [ prusnak ];
};
}