1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 pytestCheckHook,
6 pythonAtLeast,
7 pythonOlder,
8 setuptools,
9}:
10
11buildPythonPackage rec {
12 pname = "pony";
13 version = "0.7.19";
14 pyproject = true;
15
16 disabled = pythonOlder "3.8" || pythonAtLeast "3.13";
17
18 src = fetchFromGitHub {
19 owner = "ponyorm";
20 repo = "pony";
21 tag = "v${version}";
22 hash = "sha256-fYzwdHRB9QrIJPEk8dqtPggSnJeugDyC9zQSM6u3rN0=";
23 };
24
25 build-system = [ setuptools ];
26
27 nativeCheckInputs = [ pytestCheckHook ];
28
29 disabledTests = [
30 # Tests are outdated
31 "test_method"
32 # https://github.com/ponyorm/pony/issues/704
33 "test_composite_param"
34 "test_equal_json"
35 "test_equal_list"
36 "test_len"
37 "test_ne"
38 "test_nonzero"
39 "test_query"
40 ];
41
42 pythonImportsCheck = [ "pony" ];
43
44 meta = with lib; {
45 description = "Library for advanced object-relational mapping";
46 homepage = "https://ponyorm.org/";
47 changelog = "https://github.com/ponyorm/pony/releases/tag/v${version}";
48 license = licenses.asl20;
49 maintainers = with maintainers; [
50 d-goldin
51 xvapx
52 ];
53 };
54}