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