1{ lib
2, buildPythonPackage
3, fetchFromGitHub
4, pytestCheckHook
5, pythonOlder
6}:
7
8buildPythonPackage rec {
9 pname = "pony";
10 version = "0.7.16";
11 format = "setuptools";
12
13 disabled = pythonOlder "3.7";
14
15 src = fetchFromGitHub {
16 owner = "ponyorm";
17 repo = pname;
18 rev = "v${version}";
19 hash = "sha256-yATIsX2nKsW5DBwg9/LznQqf+XPY3q46WZut18Sr0v0=";
20 };
21
22 checkInputs = [
23 pytestCheckHook
24 ];
25
26 disabledTests = [
27 # Tests are outdated
28 "test_exception_msg"
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}