3
0
Fork 0
forked from mirrors/nixpkgs

Merge pull request #183594 from r-ryantm/auto-update/python3.10-pyshp

python310Packages.pyshp: 2.3.0 -> 2.3.1
This commit is contained in:
Fabian Affolter 2022-07-29 21:13:42 +02:00 committed by GitHub
commit bca6c26aa3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,19 +1,39 @@
{ lib, buildPythonPackage, fetchPypi
, setuptools }:
{ lib
, buildPythonPackage
, fetchFromGitHub
, pytestCheckHook
, pythonOlder
}:
buildPythonPackage rec {
version = "2.3.0";
pname = "pyshp";
version = "2.3.1";
format = "setuptools";
src = fetchPypi {
inherit pname version;
sha256 = "sha256-glBk6kA6zxNehGz4sJJEmUMOa+HNN6DzS+cTCQZhfTw=";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "GeospatialPython";
repo = pname;
rev = version;
hash = "sha256-yfxhgk8a1rdpGVkE1sjJqT6tiFLimhu2m2SjGxLI6wo=";
};
pythonImportsCheck = [ "shapefile" ];
checkInputs = [
pytestCheckHook
];
pythonImportsCheck = [
"shapefile"
];
disabledTests = [
# Requires network access
"test_reader_url"
];
meta = with lib; {
description = "Pure Python read/write support for ESRI Shapefile format";
description = "Python read/write support for ESRI Shapefile format";
homepage = "https://github.com/GeospatialPython/pyshp";
license = licenses.mit;
maintainers = with maintainers; [ ];