Merge pull request #155230 from fabaff/fix-pony

python3Packages.pony: 0.7.14 -> 0.7.15rc1
This commit is contained in:
Fabian Affolter 2022-01-16 23:43:24 +01:00 committed by GitHub
commit b13052a35a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,25 +1,42 @@
{ lib, python, buildPythonPackage, fetchPypi }: { lib
, buildPythonPackage
, fetchFromGitHub
, pytestCheckHook
, pythonOlder
}:
buildPythonPackage rec { buildPythonPackage rec {
pname = "pony"; pname = "pony";
version = "0.7.14"; version = "0.7.15rc1";
format = "setuptools";
src = fetchPypi { disabled = pythonOlder "3.7";
inherit pname version;
sha256 = "2f01e84e79ea7a14040225cb6c079bb266e7ba147346356c266490b18c77ce82"; src = fetchFromGitHub {
owner = "ponyorm";
repo = pname;
rev = "v${version}";
hash = "sha256-EoMpVvPCwxJbNPoeF73djcaQ4lY9jRx5nJYR2A2LXoQ=";
}; };
doCheck = true; checkInputs = [
pytestCheckHook
];
# stripping the tests disabledTests = [
postInstall = '' # Tests are outdated
rm -rf $out/${python.sitePackages}/pony/orm/tests "test_exception_msg"
''; "test_method"
];
pythonImportsCheck = [
"pony"
];
meta = with lib; { meta = with lib; {
description = "Pony is a Python ORM with beautiful query syntax"; description = "Library for advanced object-relational mapping";
homepage = "https://ponyorm.org/"; homepage = "https://ponyorm.org/";
maintainers = with maintainers; [ d-goldin xvapx ];
license = licenses.asl20; license = licenses.asl20;
maintainers = with maintainers; [ d-goldin xvapx ];
}; };
} }