Merge pull request #155230 from fabaff/fix-pony
python3Packages.pony: 0.7.14 -> 0.7.15rc1
This commit is contained in:
commit
b13052a35a
1 changed files with 29 additions and 12 deletions
|
@ -1,25 +1,42 @@
|
|||
{ lib, python, buildPythonPackage, fetchPypi }:
|
||||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
, pytestCheckHook
|
||||
, pythonOlder
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "pony";
|
||||
version = "0.7.14";
|
||||
version = "0.7.15rc1";
|
||||
format = "setuptools";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "2f01e84e79ea7a14040225cb6c079bb266e7ba147346356c266490b18c77ce82";
|
||||
disabled = pythonOlder "3.7";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "ponyorm";
|
||||
repo = pname;
|
||||
rev = "v${version}";
|
||||
hash = "sha256-EoMpVvPCwxJbNPoeF73djcaQ4lY9jRx5nJYR2A2LXoQ=";
|
||||
};
|
||||
|
||||
doCheck = true;
|
||||
checkInputs = [
|
||||
pytestCheckHook
|
||||
];
|
||||
|
||||
# stripping the tests
|
||||
postInstall = ''
|
||||
rm -rf $out/${python.sitePackages}/pony/orm/tests
|
||||
'';
|
||||
disabledTests = [
|
||||
# Tests are outdated
|
||||
"test_exception_msg"
|
||||
"test_method"
|
||||
];
|
||||
|
||||
pythonImportsCheck = [
|
||||
"pony"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Pony is a Python ORM with beautiful query syntax";
|
||||
description = "Library for advanced object-relational mapping";
|
||||
homepage = "https://ponyorm.org/";
|
||||
maintainers = with maintainers; [ d-goldin xvapx ];
|
||||
license = licenses.asl20;
|
||||
maintainers = with maintainers; [ d-goldin xvapx ];
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue