Merge pull request #311878 from r-ryantm/auto-update/python311Packages.peewee
python311Packages.peewee: 3.17.3 -> 3.17.5
This commit is contained in:
@@ -1,32 +1,36 @@
|
||||
{ lib
|
||||
, apsw
|
||||
, buildPythonPackage
|
||||
, cython
|
||||
, fetchFromGitHub
|
||||
, flask
|
||||
, python
|
||||
, sqlite
|
||||
, withMysql ? false
|
||||
, mysql-connector
|
||||
, withPostgres ? false
|
||||
, psycopg2
|
||||
, pythonOlder
|
||||
{
|
||||
lib,
|
||||
apsw,
|
||||
buildPythonPackage,
|
||||
cython,
|
||||
fetchFromGitHub,
|
||||
flask,
|
||||
python,
|
||||
sqlite,
|
||||
withMysql ? false,
|
||||
mysql-connector,
|
||||
withPostgres ? false,
|
||||
psycopg2,
|
||||
pythonOlder,
|
||||
setuptools,
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "peewee";
|
||||
version = "3.17.3";
|
||||
format = "setuptools";
|
||||
version = "3.17.5";
|
||||
pyproject = true;
|
||||
|
||||
disabled = pythonOlder "3.7";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "coleifer";
|
||||
repo = pname;
|
||||
repo = "peewee";
|
||||
rev = "refs/tags/${version}";
|
||||
hash = "sha256-F0bv9J2etrVF8wMU3caQ1ZA6TmQQOPTZWFjGsKOEPwo=";
|
||||
hash = "sha256-2SrqWPyeDBKOweLu7bEcDIAqCCtnKv0VBdzfpaA22ow=";
|
||||
};
|
||||
|
||||
build-system = [ setuptools ];
|
||||
|
||||
buildInputs = [
|
||||
sqlite
|
||||
cython
|
||||
@@ -34,15 +38,9 @@ buildPythonPackage rec {
|
||||
|
||||
propagatedBuildInputs = [
|
||||
apsw
|
||||
] ++ lib.optionals withPostgres [
|
||||
psycopg2
|
||||
] ++ lib.optionals withMysql [
|
||||
mysql-connector
|
||||
];
|
||||
] ++ lib.optionals withPostgres [ psycopg2 ] ++ lib.optionals withMysql [ mysql-connector ];
|
||||
|
||||
nativeCheckInputs = [
|
||||
flask
|
||||
];
|
||||
nativeCheckInputs = [ flask ];
|
||||
|
||||
doCheck = withPostgres;
|
||||
|
||||
@@ -51,15 +49,14 @@ buildPythonPackage rec {
|
||||
${python.interpreter} runtests.py
|
||||
'';
|
||||
|
||||
pythonImportsCheck = [
|
||||
"peewee"
|
||||
];
|
||||
pythonImportsCheck = [ "peewee" ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Python ORM with support for various database implementation";
|
||||
mainProgram = "pwiz.py";
|
||||
homepage = "http://peewee-orm.com";
|
||||
changelog = "https://github.com/coleifer/peewee/blob/${version}/CHANGELOG.md";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ ];
|
||||
mainProgram = "pwiz.py";
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user