git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #154924 from fabaff/fix-dacite

python3Packages.dacite: disable failing test

commit2298c6a59e67b722ad32ca4bf4d1543c652a3ebf authorFabian Affolter <fabian@affolter-engineering.ch> dateSat 15 Jan 2022, 09:19 (5 years ago) parent2ef6237e9675aa
1 file changed+11−1
pkgs/development/python-modules/dacite/default.nix+11−1
pkgs/development/python-modules/dacite/default.nix+11−1
@@ -2,12 +2,15 @@
22, fetchFromGitHub
33, buildPythonPackage
44, pythonOlder
5+, pythonAtLeast
56, pytestCheckHook
67}:
78
89buildPythonPackage rec {
910 pname = "dacite";
1011 version = "1.6.0";
12+ format = "setuptools";
13+
1114 disabled = pythonOlder "3.6";
1215
1316 src = fetchFromGitHub {
@@ -21,7 +24,14 @@ buildPythonPackage rec {
2124 pytestCheckHook
2225 ];
2326
24− pythonImportsCheck = [ "dacite" ];
27+ disabledTests = lib.optionals (pythonAtLeast "3.10") [
28+ # https://github.com/konradhalas/dacite/issues/167
29+ "test_from_dict_with_union_and_wrong_data"
30+ ];
31+
32+ pythonImportsCheck = [
33+ "dacite"
34+ ];
2535
2636 meta = with lib; {
2737 description = "Python helper to create data classes from dictionaries";