git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #129025 from fabaff/bump-dependency-injector
commit3a52368bc45611e4bb6631378b326451eb3dce1d authorSandro <sandro.jaeckel@gmail.com> dateWed 7 Jul 2021, 22:53 (5 years ago) parent6f01d19edabf18
3 files changed+20−7
pkgs/development/python-modules/dependency-injector/default.nix+7−2 pkgs/development/python-modules/graphene/default.nix+6−2 pkgs/development/python-modules/starlette/default.nix+7−3
pkgs/development/python-modules/dependency-injector/default.nix+7−2
@@ -16,13 +16,13 @@
1616
1717buildPythonPackage rec {
1818 pname = "dependency-injector";
19− version = "4.32.2";
19+ version = "4.34.0";
2020
2121 src = fetchFromGitHub {
2222 owner = "ets-labs";
2323 repo = "python-dependency-injector";
2424 rev = version;
25− sha256 = "1gkkka0hl2hl4axf3gfm58mzv92bg0frr5jikw8g32hd4q4aagcg";
25+ sha256 = "sha256-MI0+saRe4Zi77otVPGYxrX9z8Jc5K1A1sCxHBS0uta0=";
2626 };
2727
2828 propagatedBuildInputs = [
@@ -42,6 +42,11 @@ buildPythonPackage rec {
4242 pyyaml
4343 ];
4444
45+ postPatch = ''
46+ substituteInPlace requirements.txt \
47+ --replace "six>=1.7.0,<=1.15.0" "six"
48+ '';
49+
4550 disabledTestPaths = [
4651 # There is no unique identifier to disable the one failing test
4752 "tests/unit/ext/test_aiohttp_py35.py"
pkgs/development/python-modules/graphene/default.nix+6−2
@@ -25,9 +25,8 @@ buildPythonPackage rec {
2525 sha256 = "sha256-bVCCLPnV5F8PqLMg3GwcpwpGldrxsU+WryL6gj6y338=";
2626 };
2727
28− # Allow later aniso8601 releases
29− # https://github.com/graphql-python/graphene/pull/1331
3028 patches = [ (fetchpatch {
29+ # Allow later aniso8601 releases, https://github.com/graphql-python/graphene/pull/1331
3130 url = "https://github.com/graphql-python/graphene/commit/26b16f75b125e35eeb2274b7be503ec29f2e8a45.patch";
3231 sha256 = "qm96pNOoxPieEy1CFZpa2Mx010pY3QU/vRyuL0qO3Tk=";
3332 }) ];
@@ -50,6 +49,11 @@ buildPythonPackage rec {
5049
5150 pytestFlagsArray = [ "--benchmark-disable" ];
5251
52+ disabledTests = [
53+ # TypeError: Failed: DID NOT RAISE <class...
54+ "test_unexpected_error"
55+ ];
56+
5357 pythonImportsCheck = [ "graphene" ];
5458
5559 meta = with lib; {
pkgs/development/python-modules/starlette/default.nix+7−3
@@ -53,9 +53,13 @@ buildPythonPackage rec {
5353 typing-extensions
5454 ];
5555
56− # fails to import graphql, but integrated graphql support is about to
57− # be removed in 0.15, see https://github.com/encode/starlette/pull/1135.
58− disabledTestPaths = [ "tests/test_graphql.py" ];
56+ disabledTestPaths = [
57+ # fails to import graphql, but integrated graphql support is about to
58+ # be removed in 0.15, see https://github.com/encode/starlette/pull/1135.
59+ "tests/test_graphql.py"
60+ # contextfunction was removed in Jinja 3.1
61+ "tests/test_templates.py"
62+ ];
5963
6064 pythonImportsCheck = [ "starlette" ];
6165