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