mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-30 19:02:57 +00:00
Merge pull request #299630 from marsam/fix-flask-restx-darwin
python311Packages.flask-restx: fix build on Darwin
This commit is contained in:
commit
24b7220d08
@ -1,4 +1,5 @@
|
|||||||
{ lib
|
{ lib
|
||||||
|
, stdenv
|
||||||
, buildPythonPackage
|
, buildPythonPackage
|
||||||
, fetchFromGitHub
|
, fetchFromGitHub
|
||||||
, pythonOlder
|
, pythonOlder
|
||||||
@ -16,24 +17,29 @@
|
|||||||
, pytest-mock
|
, pytest-mock
|
||||||
, pytest-benchmark
|
, pytest-benchmark
|
||||||
, pytestCheckHook
|
, pytestCheckHook
|
||||||
|
, setuptools
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "flask-restx";
|
pname = "flask-restx";
|
||||||
version = "1.3.0";
|
version = "1.3.0";
|
||||||
format = "setuptools";
|
pyproject = true;
|
||||||
|
|
||||||
disabled = pythonOlder "3.8";
|
disabled = pythonOlder "3.8";
|
||||||
|
|
||||||
# Tests not included in PyPI tarball
|
# Tests not included in PyPI tarball
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "python-restx";
|
owner = "python-restx";
|
||||||
repo = pname;
|
repo = "flask-restx";
|
||||||
rev = "refs/tags/${version}";
|
rev = "refs/tags/${version}";
|
||||||
hash = "sha256-CBReP/u96fsr28lMV1BfLjjdBMXEvsD03wvsxkIcteI=";
|
hash = "sha256-CBReP/u96fsr28lMV1BfLjjdBMXEvsD03wvsxkIcteI=";
|
||||||
};
|
};
|
||||||
|
|
||||||
propagatedBuildInputs = [
|
build-system = [
|
||||||
|
setuptools
|
||||||
|
];
|
||||||
|
|
||||||
|
dependencies = [
|
||||||
aniso8601
|
aniso8601
|
||||||
flask
|
flask
|
||||||
importlib-resources
|
importlib-resources
|
||||||
@ -58,6 +64,8 @@ buildPythonPackage rec {
|
|||||||
"--deselect=tests/test_inputs.py::URLTest::test_check"
|
"--deselect=tests/test_inputs.py::URLTest::test_check"
|
||||||
"--deselect=tests/test_inputs.py::EmailTest::test_valid_value_check"
|
"--deselect=tests/test_inputs.py::EmailTest::test_valid_value_check"
|
||||||
"--deselect=tests/test_logging.py::LoggingTest::test_override_app_level"
|
"--deselect=tests/test_logging.py::LoggingTest::test_override_app_level"
|
||||||
|
] ++ lib.optionals stdenv.isDarwin [
|
||||||
|
"--deselect=tests/test_inputs.py::EmailTest::test_invalid_values_check"
|
||||||
];
|
];
|
||||||
|
|
||||||
disabledTests = [
|
disabledTests = [
|
||||||
|
Loading…
Reference in New Issue
Block a user