1{ 2 lib, 3 attrs, 4 buildPythonPackage, 5 fetchPypi, 6 pytestCheckHook, 7 pythonOlder, 8 pytz, 9 setuptools, 10}: 11 12buildPythonPackage rec { 13 pname = "serpent"; 14 version = "1.41"; 15 pyproject = true; 16 17 disabled = pythonOlder "3.9"; 18 19 src = fetchPypi { 20 inherit pname version; 21 hash = "sha256-BAcDX+PGZEOH1Iz/FGfVqp/v+BTQc3K3hnftDuPtcJU="; 22 }; 23 24 build-system = [ setuptools ]; 25 26 nativeCheckInputs = [ 27 attrs 28 pytz 29 pytestCheckHook 30 ]; 31 32 pythonImportsCheck = [ "serpent" ]; 33 34 meta = with lib; { 35 description = "Simple serialization library based on ast.literal_eval"; 36 homepage = "https://github.com/irmen/Serpent"; 37 changelog = "https://github.com/irmen/Serpent/releases/tag/serpent-${version}"; 38 license = licenses.mit; 39 maintainers = with maintainers; [ prusnak ]; 40 }; 41}