5e7c2d6cef
GitOrigin-RevId: f99e5f03cc0aa231ab5950a15ed02afec45ed51a
42 lines
801 B
Nix
42 lines
801 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, pytestCheckHook
|
|
, pythonOlder
|
|
, pythonAtLeast
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "pony";
|
|
version = "0.7.17";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.8" || pythonAtLeast "3.12";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "ponyorm";
|
|
repo = pname;
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-wBqw+YHKlxYplgsYL1pbkusHyPfCaVPcH/Yku6WDYbE=";
|
|
};
|
|
|
|
nativeCheckInputs = [
|
|
pytestCheckHook
|
|
];
|
|
|
|
disabledTests = [
|
|
# Tests are outdated
|
|
"test_method"
|
|
];
|
|
|
|
pythonImportsCheck = [
|
|
"pony"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Library for advanced object-relational mapping";
|
|
homepage = "https://ponyorm.org/";
|
|
license = licenses.asl20;
|
|
maintainers = with maintainers; [ d-goldin xvapx ];
|
|
};
|
|
}
|