1{ lib
2, buildPythonPackage
3, fetchFromGitHub
4, pytestCheckHook
5, pythonOlder
6, pythonAtLeast
7}:
8
9buildPythonPackage rec {
10 pname = "pony";
11 version = "0.7.16";
12 format = "setuptools";
13
14 disabled = pythonOlder "3.7" || pythonAtLeast "3.11";
15
16 src = fetchFromGitHub {
17 owner = "ponyorm";
18 repo = pname;
19 rev = "v${version}";
20 hash = "sha256-yATIsX2nKsW5DBwg9/LznQqf+XPY3q46WZut18Sr0v0=";
21 };
22
23 nativeCheckInputs = [
24 pytestCheckHook
25 ];
26
27 disabledTests = [
28 # Tests are outdated
29 "test_exception_msg"
30 "test_method"
31 ];
32
33 pythonImportsCheck = [
34 "pony"
35 ];
36
37 meta = with lib; {
38 description = "Library for advanced object-relational mapping";
39 homepage = "https://ponyorm.org/";
40 license = licenses.asl20;
41 maintainers = with maintainers; [ d-goldin xvapx ];
42 };
43}