diff --git a/pkgs/development/python-modules/osmpythontools/default.nix b/pkgs/development/python-modules/osmpythontools/default.nix index cb6cd5c5f78f..ccb15aec01b3 100644 --- a/pkgs/development/python-modules/osmpythontools/default.nix +++ b/pkgs/development/python-modules/osmpythontools/default.nix @@ -13,15 +13,17 @@ buildPythonPackage rec { pname = "osmpythontools"; - version = "0.2.8"; + version = "0.2.9"; src = fetchFromGitHub { owner = "mocnik-science"; repo = "osm-python-tools"; rev = "v${version}"; - sha256 = "1hkc18zcw1fqx8zk3z18xpas87vkcpgsch5cavqda4aihl51vmy2"; + sha256 = "1qpj03fgn8rmrg9a9vk7bw32k9hdy15g5p2q3a6q52ykpb78jdz5"; }; + patches = [ ./remove-test-only-dependencies.patch ]; + propagatedBuildInputs = [ beautifulsoup4 geojson @@ -33,7 +35,7 @@ buildPythonPackage rec { xarray ]; - # no tests included + # tests touch network doCheck = false; pythonImportsCheck = [ diff --git a/pkgs/development/python-modules/osmpythontools/remove-test-only-dependencies.patch b/pkgs/development/python-modules/osmpythontools/remove-test-only-dependencies.patch new file mode 100644 index 000000000000..c12a96622ebd --- /dev/null +++ b/pkgs/development/python-modules/osmpythontools/remove-test-only-dependencies.patch @@ -0,0 +1,13 @@ +diff --git a/setup.py b/setup.py +index 801d081..6d93128 100644 +--- a/setup.py ++++ b/setup.py +@@ -19,8 +19,6 @@ setup( + 'matplotlib', + 'numpy', + 'pandas', +- 'pytest', +- 'pytest-sugar', + 'ujson', + 'xarray', + ],