depot/third_party/nixpkgs/pkgs/development/python-modules/serpent/default.nix
Default email 159e378cbb Project import generated by Copybara.
GitOrigin-RevId: c04d5652cfa9742b1d519688f65d1bbccea9eb7e
2024-09-19 17:19:46 +03:00

36 lines
676 B
Nix

{
lib,
buildPythonPackage,
fetchPypi,
isPy27,
enum34,
attrs,
pytz,
pytestCheckHook,
}:
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
pytestCheckHook
];
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 ];
};
}