2022-01-16 15:36:46 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, pytestCheckHook
|
|
|
|
, pythonOlder
|
|
|
|
}:
|
2019-11-25 19:35:16 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pony";
|
2022-01-28 16:15:29 +00:00
|
|
|
version = "0.7.16";
|
2022-01-16 15:36:46 +00:00
|
|
|
format = "setuptools";
|
2019-11-25 19:35:16 +00:00
|
|
|
|
2022-01-16 15:36:46 +00:00
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "ponyorm";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2022-01-28 16:15:29 +00:00
|
|
|
hash = "sha256-yATIsX2nKsW5DBwg9/LznQqf+XPY3q46WZut18Sr0v0=";
|
2019-11-25 19:35:16 +00:00
|
|
|
};
|
|
|
|
|
2022-01-16 15:36:46 +00:00
|
|
|
checkInputs = [
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
|
|
|
disabledTests = [
|
|
|
|
# Tests are outdated
|
|
|
|
"test_exception_msg"
|
|
|
|
"test_method"
|
|
|
|
];
|
2019-11-25 19:35:16 +00:00
|
|
|
|
2022-01-16 15:36:46 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"pony"
|
|
|
|
];
|
2019-11-25 19:35:16 +00:00
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2022-01-16 15:36:46 +00:00
|
|
|
description = "Library for advanced object-relational mapping";
|
2019-11-25 19:35:16 +00:00
|
|
|
homepage = "https://ponyorm.org/";
|
|
|
|
license = licenses.asl20;
|
2022-01-16 15:36:46 +00:00
|
|
|
maintainers = with maintainers; [ d-goldin xvapx ];
|
2019-11-25 19:35:16 +00:00
|
|
|
};
|
|
|
|
}
|