mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-08-26 02:05:02 +00:00
Merge staging-next into staging
This commit is contained in:
@@ -18,6 +18,8 @@ buildPythonPackage rec {
|
||||
|
||||
checkInputs = [ pytestCheckHook pytest-benchmark numpy arrow ruamel_yaml ];
|
||||
|
||||
disabledTests = stdenv.lib.optionals stdenv.isDarwin [ "test_multiprocessing" ];
|
||||
|
||||
pytestFlagsArray = [ "--benchmark-disable" ];
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
|
||||
50
pkgs/development/python-modules/flask-restx/default.nix
Normal file
50
pkgs/development/python-modules/flask-restx/default.nix
Normal file
@@ -0,0 +1,50 @@
|
||||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
, aniso8601
|
||||
, jsonschema
|
||||
, flask
|
||||
, werkzeug
|
||||
, pytz
|
||||
, faker
|
||||
, six
|
||||
, enum34
|
||||
, isPy27
|
||||
, mock
|
||||
, blinker
|
||||
, pytest-flask
|
||||
, pytest-mock
|
||||
, pytest-benchmark
|
||||
, pytestCheckHook
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "flask-restx";
|
||||
version = "0.2.0";
|
||||
|
||||
# Tests not included in PyPI tarball
|
||||
src = fetchFromGitHub {
|
||||
owner = "python-restx";
|
||||
repo = pname;
|
||||
rev = version;
|
||||
sha256 = "0xf2vkmdngp9cv9klznizai4byxjcf0iqh1pr4b83nann0jxqwy7";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ aniso8601 jsonschema flask werkzeug pytz six ]
|
||||
++ lib.optionals isPy27 [ enum34 ];
|
||||
|
||||
checkInputs = [ pytestCheckHook faker mock pytest-flask pytest-mock pytest-benchmark blinker ];
|
||||
|
||||
pytestFlagsArray = [
|
||||
"--benchmark-disable"
|
||||
"--deselect=tests/test_inputs.py::URLTest::test_check"
|
||||
"--deselect=tests/test_inputs.py::EmailTest::test_valid_value_check"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "https://flask-restx.readthedocs.io/en/${version}/";
|
||||
description = "Fully featured framework for fast, easy and documented API development with Flask";
|
||||
license = licenses.bsd3;
|
||||
maintainers = [ maintainers.marsam ];
|
||||
};
|
||||
}
|
||||
@@ -6,11 +6,11 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "hg-evolve";
|
||||
version = "10.0.0";
|
||||
version = "10.0.1";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "03kn1c62y6rb851wjhsaxkrwq223hkc4ij59i85999byyb2hyqad";
|
||||
sha256 = "9468b3e2721744b077413c3d4a6b321b61370d4c87b90afa40dc2b48ad877d4b";
|
||||
};
|
||||
|
||||
doCheck = false;
|
||||
|
||||
@@ -1,69 +0,0 @@
|
||||
{ lib
|
||||
, stdenv
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, pythonOlder
|
||||
# Build dependencies
|
||||
, glibcLocales
|
||||
# Test dependencies
|
||||
, nose
|
||||
, pygments
|
||||
# Runtime dependencies
|
||||
, jedi
|
||||
, decorator
|
||||
, pickleshare
|
||||
, traitlets
|
||||
, prompt_toolkit
|
||||
, pexpect
|
||||
, appnope
|
||||
, backcall
|
||||
, fetchpatch
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "ipython";
|
||||
version = "7.9.0";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "103jkw18z7fnwdal1mdbijjxi1fndzn31g887lmj7ddpf2r07lyz";
|
||||
};
|
||||
|
||||
prePatch = lib.optionalString stdenv.isDarwin ''
|
||||
substituteInPlace setup.py --replace "'gnureadline'" " "
|
||||
'';
|
||||
|
||||
buildInputs = [ glibcLocales ];
|
||||
|
||||
checkInputs = [ nose pygments ];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
jedi
|
||||
decorator
|
||||
pickleshare
|
||||
traitlets
|
||||
prompt_toolkit
|
||||
pygments
|
||||
pexpect
|
||||
backcall
|
||||
] ++ lib.optionals stdenv.isDarwin [appnope];
|
||||
|
||||
LC_ALL="en_US.UTF-8";
|
||||
|
||||
doCheck = false; # Circular dependency with ipykernel
|
||||
|
||||
checkPhase = ''
|
||||
nosetests
|
||||
'';
|
||||
|
||||
pythonImportsCheck = [
|
||||
"IPython"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "IPython: Productive Interactive Computing";
|
||||
homepage = "http://ipython.org/";
|
||||
license = licenses.bsd3;
|
||||
maintainers = with maintainers; [ bjornfor ];
|
||||
};
|
||||
}
|
||||
@@ -1,11 +1,13 @@
|
||||
{ buildPythonPackage
|
||||
, fetchPypi
|
||||
, isPy27
|
||||
, lib
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "javaobj-py3";
|
||||
version = "0.4.1";
|
||||
disabled = isPy27;
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
|
||||
@@ -4,7 +4,7 @@ buildPythonPackage rec {
|
||||
pname = "jq";
|
||||
version = "0.1.6";
|
||||
|
||||
srcs = fetchPypi {
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "34bdf9f9e49e522e1790afc03f3584c6b57329215ea0567fb2157867d6d6f602";
|
||||
};
|
||||
|
||||
@@ -12,6 +12,8 @@ buildPythonPackage rec {
|
||||
|
||||
checkInputs = [ pytestCheckHook colorama ];
|
||||
|
||||
pytestFlagsArray = stdenv.lib.optionals stdenv.isDarwin [ "--ignore=tests/test_multiprocessing.py" ];
|
||||
|
||||
disabledTests = [ "test_time_rotation_reopening" "test_file_buffering" ]
|
||||
++ stdenv.lib.optionals stdenv.isDarwin [ "test_rotation_and_retention" "test_rotation_and_retention_timed_file" "test_renaming" "test_await_complete_inheritance" ];
|
||||
|
||||
|
||||
@@ -12,7 +12,7 @@ buildPythonPackage rec {
|
||||
pname = "openwrt-luci-rpc";
|
||||
version = "1.1.2";
|
||||
|
||||
srcs = fetchPypi {
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "144bw7w1xvpdkad5phflpkl15ih5pvi19799wmvfv8mj1dn1yjhp";
|
||||
};
|
||||
|
||||
@@ -31,7 +31,8 @@ buildPythonPackage rec {
|
||||
"test_integration"
|
||||
];
|
||||
|
||||
disabled = isPy3k; # Not yet compatible with latest Sphinx.
|
||||
doCheck = !isPy3k; # Not yet compatible with latest Sphinx.
|
||||
pythonImportsCheck = [ "recommonmark" ];
|
||||
|
||||
meta = {
|
||||
description = "A docutils-compatibility bridge to CommonMark";
|
||||
|
||||
@@ -11,11 +11,11 @@ let
|
||||
ft = freetype.overrideAttrs (oldArgs: { dontDisableStatic = true; });
|
||||
in buildPythonPackage rec {
|
||||
pname = "reportlab";
|
||||
version = "3.5.46";
|
||||
version = "3.5.47";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "56d71b78e7e4bb31a93e1dff13c22d19b7fb3890b021a39b6c3661b095bd7de8";
|
||||
sha256 = "0gw0902yjszwxk0air69in7nk4h2q36r96ga3r4bz0p0cnmagcj5";
|
||||
};
|
||||
|
||||
checkInputs = [ glibcLocales ];
|
||||
@@ -30,6 +30,7 @@ in buildPythonPackage rec {
|
||||
|
||||
# Remove the tests that require Vera fonts installed
|
||||
rm tests/test_graphics_render.py
|
||||
rm tests/test_graphics_charts.py
|
||||
'';
|
||||
|
||||
checkPhase = ''
|
||||
|
||||
Reference in New Issue
Block a user