Merge pull request #111847 from das-g/osmpythontools

This commit is contained in:
Sandro 2021-02-04 15:48:53 +01:00 committed by GitHub
commit fa6a0a0e85
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 23 additions and 7 deletions

View File

@ -1,6 +1,6 @@
{ lib { lib
, buildPythonPackage , buildPythonPackage
, fetchPypi , fetchFromGitHub
, beautifulsoup4 , beautifulsoup4
, geojson , geojson
, lxml , lxml
@ -13,14 +13,17 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "osmpythontools"; pname = "osmpythontools";
version = "0.2.8"; version = "0.2.9";
src = fetchPypi { src = fetchFromGitHub {
pname = "OSMPythonTools"; owner = "mocnik-science";
inherit version; repo = "osm-python-tools";
sha256 = "8a33adbd266127e342d12da755075fae08f398032a6f0909b5e86bef13960a85"; rev = "v${version}";
sha256 = "1qpj03fgn8rmrg9a9vk7bw32k9hdy15g5p2q3a6q52ykpb78jdz5";
}; };
patches = [ ./remove-test-only-dependencies.patch ];
propagatedBuildInputs = [ propagatedBuildInputs = [
beautifulsoup4 beautifulsoup4
geojson geojson
@ -32,7 +35,7 @@ buildPythonPackage rec {
xarray xarray
]; ];
# no tests included # tests touch network
doCheck = false; doCheck = false;
pythonImportsCheck = [ pythonImportsCheck = [

View File

@ -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',
],