2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
2024-10-23 06:41:50 +00:00
|
|
|
attrs,
|
2024-06-05 15:53:02 +00:00
|
|
|
buildPythonPackage,
|
|
|
|
fetchPypi,
|
2024-09-19 14:19:46 +00:00
|
|
|
pytestCheckHook,
|
2024-10-23 06:41:50 +00:00
|
|
|
pythonOlder,
|
|
|
|
pytz,
|
|
|
|
setuptools,
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "serpent";
|
2022-08-12 12:06:08 +00:00
|
|
|
version = "1.41";
|
2024-10-23 06:41:50 +00:00
|
|
|
pyproject = true;
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.9";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2023-03-15 16:39:30 +00:00
|
|
|
hash = "sha256-BAcDX+PGZEOH1Iz/FGfVqp/v+BTQc3K3hnftDuPtcJU=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2024-10-23 06:41:50 +00:00
|
|
|
build-system = [ setuptools ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
nativeCheckInputs = [
|
|
|
|
attrs
|
|
|
|
pytz
|
2024-09-19 14:19:46 +00:00
|
|
|
pytestCheckHook
|
2024-06-05 15:53:02 +00:00
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2024-10-23 06:41:50 +00:00
|
|
|
pythonImportsCheck = [ "serpent" ];
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Simple serialization library based on ast.literal_eval";
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://github.com/irmen/Serpent";
|
2024-10-23 06:41:50 +00:00
|
|
|
changelog = "https://github.com/irmen/Serpent/releases/tag/serpent-${version}";
|
2020-04-24 23:36:52 +00:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ prusnak ];
|
2024-06-05 15:53:02 +00:00
|
|
|
};
|
2020-04-24 23:36:52 +00:00
|
|
|
}
|