2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchFromGitHub,
|
|
|
|
pytestCheckHook,
|
|
|
|
pythonOlder,
|
|
|
|
pythonAtLeast,
|
|
|
|
setuptools,
|
2022-01-19 23:45:15 +00:00
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pony";
|
2023-10-09 19:29:22 +00:00
|
|
|
version = "0.7.17";
|
2024-02-29 20:09:43 +00:00
|
|
|
pyproject = true;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2023-10-09 19:29:22 +00:00
|
|
|
disabled = pythonOlder "3.8" || pythonAtLeast "3.12";
|
2022-01-19 23:45:15 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "ponyorm";
|
2024-02-29 20:09:43 +00:00
|
|
|
repo = "pony";
|
2023-10-09 19:29:22 +00:00
|
|
|
rev = "refs/tags/v${version}";
|
|
|
|
hash = "sha256-wBqw+YHKlxYplgsYL1pbkusHyPfCaVPcH/Yku6WDYbE=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
nativeBuildInputs = [ setuptools ];
|
2024-02-29 20:09:43 +00:00
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
2022-01-19 23:45:15 +00:00
|
|
|
|
|
|
|
disabledTests = [
|
|
|
|
# Tests are outdated
|
|
|
|
"test_method"
|
2024-02-29 20:09:43 +00:00
|
|
|
# https://github.com/ponyorm/pony/issues/704
|
|
|
|
"test_composite_param"
|
|
|
|
"test_equal_json"
|
|
|
|
"test_equal_list"
|
|
|
|
"test_len"
|
|
|
|
"test_ne"
|
|
|
|
"test_nonzero"
|
|
|
|
"test_query"
|
2022-01-19 23:45:15 +00:00
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
pythonImportsCheck = [ "pony" ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2022-01-19 23:45:15 +00:00
|
|
|
description = "Library for advanced object-relational mapping";
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://ponyorm.org/";
|
2024-02-29 20:09:43 +00:00
|
|
|
changelog = "https://github.com/ponyorm/pony/releases/tag/v${version}";
|
2020-04-24 23:36:52 +00:00
|
|
|
license = licenses.asl20;
|
2024-06-05 15:53:02 +00:00
|
|
|
maintainers = with maintainers; [
|
|
|
|
d-goldin
|
|
|
|
xvapx
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|