File tree Expand file tree Collapse file tree
pkgs/development/python-modules Expand file tree Collapse file tree Original file line number Diff line number Diff line change 66 fetchPypi ,
77 isPy27 ,
88 pytestCheckHook ,
9- pythonAtLeast ,
109 setuptools ,
1110} :
1211
@@ -37,7 +36,7 @@ buildPythonPackage rec {
3736
3837 enabledTestPaths = [ "test/unittests.py" ] ;
3938
40- disabledTests = lib . optionals ( pythonAtLeast "3.10" ) [
39+ disabledTests = [
4140 # https://github.com/WojciechMula/aspell-python/issues/22
4241 "test_add"
4342 "test_get"
Original file line number Diff line number Diff line change 22 lib ,
33 buildPythonPackage ,
44 fetchPypi ,
5- pythonAtLeast ,
65} :
76
87buildPythonPackage rec {
98 pname = "crashtest" ;
109 version = "0.4.1" ;
1110 format = "setuptools" ;
12- disabled = ! ( pythonAtLeast "3.6" ) ;
1311
1412 src = fetchPypi {
1513 inherit pname version ;
Original file line number Diff line number Diff line change 22 lib ,
33 buildPythonPackage ,
44 fetchFromGitHub ,
5- pythonAtLeast ,
65 attrs ,
76 isodate ,
87 python-dateutil ,
@@ -43,8 +42,6 @@ buildPythonPackage rec {
4342 # this test is flaky on darwin because it depends on the resolution of filesystem mtimes
4443 # https://github.com/cldf/csvw/blob/45584ad63ff3002a9b3a8073607c1847c5cbac58/tests/test_db.py#L257
4544 "test_write_file_exists"
46- ]
47- ++ lib . optionals ( pythonAtLeast "3.10" ) [
4845 # https://github.com/cldf/csvw/issues/58
4946 "test_roundtrip_escapechar"
5047 "test_escapequote_escapecharquotechar_final"
Original file line number Diff line number Diff line change 22 lib ,
33 buildPythonPackage ,
44 fetchPypi ,
5- isPy27 ,
6- pythonAtLeast ,
75 keras ,
86 numpy ,
97 scipy ,
@@ -16,8 +14,6 @@ buildPythonPackage rec {
1614 version = "1.3.5" ;
1715 format = "setuptools" ;
1816
19- disabled = ! ( isPy27 || pythonAtLeast "3.4" ) ;
20-
2117 src = fetchPypi {
2218 inherit pname version ;
2319 sha256 = "3818b39e77c26fc1a37767a74fdd5e7d02877d75ed901ead2f40bd03baaa109f" ;
Original file line number Diff line number Diff line change 22 lib ,
33 buildPythonPackage ,
44 fetchFromGitHub ,
5- isPy27 ,
6- isPy38 ,
7- isPy39 ,
8- pythonAtLeast ,
95 setuptools ,
106 flake8 ,
117 six ,
@@ -25,15 +21,9 @@ buildPythonPackage rec {
2521 hash = "sha256-2EcCOx3+PCk9LYpQjHCFNpQVI2Pdi+lWL8R6bNadFe0=" ;
2622 } ;
2723
28- patches =
29- lib . optionals ( pythonAtLeast "3.10" ) [ ./fix-annotations-version-11.patch ]
30- ++ lib . optionals ( isPy38 || isPy39 ) [ ./fix-annotations-version-10.patch ]
31- ++ lib . optionals isPy27 [
32- # Upstream disables this test case naturally on python 3, but it also fails
33- # inside NixPkgs for python 2. Since it's going to be deleted, we just skip it
34- # on py2 as well.
35- ./skip-test.patch
36- ] ;
24+ patches = [
25+ ./fix-annotations-version-11.patch
26+ ] ;
3727
3828 postPatch = ''
3929 substituteInPlace "test_flake8_future_import.py" \
Load Diff This file was deleted.
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1111 pytest-randomly ,
1212 pytest-timeout ,
1313 pytestCheckHook ,
14- pythonAtLeast ,
1514 six ,
1615} :
1716
@@ -42,9 +41,6 @@ buildPythonPackage rec {
4241
4342 __darwinAllowLocalNetworking = true ;
4443
45- # Don't run tests for older Pythons
46- doCheck = pythonAtLeast "3.9" ;
47-
4844 disabledTests = [
4945 # ValueError: Unable to load PEM file.
5046 # https://github.com/httplib2/httplib2/issues/192#issuecomment-993165140
Original file line number Diff line number Diff line change 44 fetchFromGitHub ,
55 marshmallow ,
66 pytestCheckHook ,
7- pythonAtLeast ,
87 setuptools ,
98 typeguard ,
109 typing-inspect ,
@@ -39,7 +38,7 @@ buildPythonPackage rec {
3938 "-Wignore::DeprecationWarning"
4039 ] ;
4140
42- disabledTests = lib . optionals ( pythonAtLeast "3.10" ) [
41+ disabledTests = [
4342 # TypeError: UserId is not a dataclass and cannot be turned into one.
4443 "test_newtype"
4544 ] ;
Original file line number Diff line number Diff line change 1010 scikit-learn ,
1111 scipy ,
1212 pytestCheckHook ,
13- pythonAtLeast ,
1413} :
1514
1615buildPythonPackage rec {
@@ -44,7 +43,7 @@ buildPythonPackage rec {
4443
4544 pythonImportsCheck = [ "persim" ] ;
4645
47- disabledTests = lib . optionals ( pythonAtLeast "3.10" ) [
46+ disabledTests = [
4847 # AttributeError: module 'collections' has no attribute 'Iterable'
4948 "test_empyt_diagram_list"
5049 "test_empty_diagram_list"
You can’t perform that action at this time.
0 commit comments