mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-11-26 07:50:31 +00:00
Merge remote-tracking branch 'origin/staging' into staging-next
This commit is contained in:
@@ -10,13 +10,13 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "importlib-metadata";
|
||||
version = "3.7.3";
|
||||
version = "4.0.1";
|
||||
disabled = pythonOlder "3.6";
|
||||
|
||||
src = fetchPypi {
|
||||
pname = "importlib_metadata";
|
||||
inherit version;
|
||||
sha256 = "742add720a20d0467df2f444ae41704000f50e1234f46174b51f9c6031a1bd71";
|
||||
sha256 = "sha256-jFARluSfud9d9DgzvbHkMo9khHdj7IpQcDFItzeE1YE=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ setuptools-scm ];
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
{ lib
|
||||
, buildPythonPackage
|
||||
, pythonOlder
|
||||
, fetchPypi
|
||||
, marshmallow
|
||||
, sqlalchemy
|
||||
@@ -9,11 +10,12 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "marshmallow-sqlalchemy";
|
||||
version = "0.24.2";
|
||||
version = "0.25.0";
|
||||
disabled = pythonOlder "3.6";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "ee3ead3b83de6608c6850ff60515691b0dc556ca226680f8a82b9f785cdb71b1";
|
||||
sha256 = "0i39ckrixh1w9fmkm0wl868gvza72j5la0x6dd0cij9shf1iyjgi";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [
|
||||
@@ -21,6 +23,10 @@ buildPythonPackage rec {
|
||||
sqlalchemy
|
||||
];
|
||||
|
||||
pythonImportsCheck = [
|
||||
"marshmallow_sqlalchemy"
|
||||
];
|
||||
|
||||
checkInputs = [
|
||||
pytest-lazy-fixture
|
||||
pytestCheckHook
|
||||
@@ -28,7 +34,7 @@ buildPythonPackage rec {
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "https://github.com/marshmallow-code/marshmallow-sqlalchemy";
|
||||
description = "SQLAlchemy integration with marshmallow ";
|
||||
description = "SQLAlchemy integration with marshmallow";
|
||||
license = licenses.mit;
|
||||
};
|
||||
|
||||
|
||||
@@ -1,27 +1,40 @@
|
||||
{ lib, buildPythonPackage, fetchPypi,
|
||||
dateutil, simplejson, isPy27
|
||||
{ lib
|
||||
, buildPythonPackage
|
||||
, pythonOlder
|
||||
, fetchFromGitHub
|
||||
, pytestCheckHook
|
||||
, pytz
|
||||
, simplejson
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "marshmallow";
|
||||
version = "3.10.0";
|
||||
disabled = isPy27;
|
||||
version = "3.11.1";
|
||||
disabled = pythonOlder "3.5";
|
||||
|
||||
meta = {
|
||||
homepage = "https://github.com/marshmallow-code/marshmallow";
|
||||
src = fetchFromGitHub {
|
||||
owner = "marshmallow-code";
|
||||
repo = pname;
|
||||
rev = version;
|
||||
sha256 = "1ypm142y3giaqydc7fkigm9r057yp2sd1ng5zr2x3w3wbbj5yfm6";
|
||||
};
|
||||
|
||||
pythonImportsCheck = [
|
||||
"marshmallow"
|
||||
];
|
||||
|
||||
checkInputs = [
|
||||
pytestCheckHook
|
||||
pytz
|
||||
simplejson
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = ''
|
||||
A lightweight library for converting complex objects to and from
|
||||
simple Python datatypes.
|
||||
'';
|
||||
license = lib.licenses.mit;
|
||||
homepage = "https://github.com/marshmallow-code/marshmallow";
|
||||
license = licenses.mit;
|
||||
};
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "4ab2fdb7f36eb61c3665da67a7ce281c8900db08d72ba6bf0e695828253581f7";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ dateutil simplejson ];
|
||||
|
||||
doCheck = false;
|
||||
}
|
||||
|
||||
@@ -1,4 +1,11 @@
|
||||
{ stdenv, lib, fetchPypi, buildPythonPackage, isPy3k, isPy35, fetchpatch
|
||||
{ stdenv
|
||||
, lib
|
||||
, fetchPypi
|
||||
, buildPythonPackage
|
||||
, isPy3k
|
||||
, pythonOlder
|
||||
, greenlet
|
||||
, importlib-metadata
|
||||
, mock
|
||||
, pysqlite ? null
|
||||
, pytestCheckHook
|
||||
@@ -7,19 +14,17 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "SQLAlchemy";
|
||||
version = "1.3.23";
|
||||
version = "1.4.15";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "6fca33672578666f657c131552c4ef8979c1606e494f78cd5199742dfb26918b";
|
||||
sha256 = "1rj9h3mcxrgh5q8qvz7m39diyil27l5mldr49mgz6xfibk3h1w8g";
|
||||
};
|
||||
|
||||
patches = [
|
||||
# fix test_pyodbc_extra_connect_azure test failure
|
||||
(fetchpatch {
|
||||
url = "https://github.com/sqlalchemy/sqlalchemy/commit/7293b3dc0e9eb3dae84ffd831494b85355df8e73.patch";
|
||||
sha256 = "1z61lzxamz74771ddlqmbxba1dcr77f016vqfcmb44dxb228w2db";
|
||||
})
|
||||
propagatedBuildInputs = [
|
||||
greenlet
|
||||
] ++ lib.optionals (pythonOlder "3.8") [
|
||||
importlib-metadata
|
||||
];
|
||||
|
||||
checkInputs = [
|
||||
@@ -28,7 +33,9 @@ buildPythonPackage rec {
|
||||
mock
|
||||
] ++ lib.optional (!isPy3k) pysqlite;
|
||||
|
||||
pytestFlagsArray = [ "-n auto" ];
|
||||
pytestFlagsArray = [
|
||||
"-n auto"
|
||||
];
|
||||
|
||||
postInstall = ''
|
||||
sed -e 's:--max-worker-restart=5::g' -i setup.cfg
|
||||
@@ -37,8 +44,10 @@ buildPythonPackage rec {
|
||||
dontUseSetuptoolsCheck = true;
|
||||
|
||||
# disable mem-usage tests on mac, has trouble serializing pickle files
|
||||
disabledTests = lib.optionals isPy35 [ "exception_persistent_flush_py3k "]
|
||||
++ lib.optionals stdenv.isDarwin [ "MemUsageWBackendTest" "MemUsageTest" ];
|
||||
disabledTests = lib.optionals stdenv.isDarwin [
|
||||
"MemUsageWBackendTest"
|
||||
"MemUsageTest"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "http://www.sqlalchemy.org/";
|
||||
|
||||
Reference in New Issue
Block a user