depot/third_party/nixpkgs/pkgs/development/python-modules/owslib/default.nix

29 lines
843 B
Nix
Raw Normal View History

{ lib, buildPythonPackage, fetchPypi, python-dateutil, requests, pytz, pyproj , pytest, pyyaml } :
buildPythonPackage rec {
pname = "OWSLib";
version = "0.26.0";
src = fetchPypi {
inherit pname version;
sha256 = "sha256-jEywYzjrZAXCrs7QttCFaCqmHw8uUo8ceI1o3FDflBs=";
};
# as now upstream https://github.com/geopython/OWSLib/pull/824
postPatch = ''
substituteInPlace requirements.txt \
--replace 'pyproj ' 'pyproj #'
'';
buildInputs = [ pytest ];
propagatedBuildInputs = [ python-dateutil pyproj pytz requests pyyaml ];
# 'tests' dir not included in pypy distribution archive.
doCheck = false;
meta = with lib; {
description = "client for Open Geospatial Consortium web service interface standards";
license = licenses.bsd3;
homepage = "https://www.osgeo.org/projects/owslib/";
};
}