python310Packages.pyshp: enable tests

This commit is contained in:
Fabian Affolter 2022-07-29 20:44:48 +02:00 committed by GitHub
parent d04acdc3cc
commit e4b1f9e0f2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,6 +1,7 @@
{ lib
, buildPythonPackage
, fetchPypi
, fetchFromGitHub
, pytestCheckHook
, pythonOlder
}:
@ -11,15 +12,26 @@ buildPythonPackage rec {
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
hash = "sha256-TK7IL9jdCW/rqCF4WAaLrLKjtZUPQ8BIxtwyo0idWvE=";
src = fetchFromGitHub {
owner = "GeospatialPython";
repo = pname;
rev = version;
hash = "sha256-yfxhgk8a1rdpGVkE1sjJqT6tiFLimhu2m2SjGxLI6wo=";
};
checkInputs = [
pytestCheckHook
];
pythonImportsCheck = [
"shapefile"
];
disabledTests = [
# Requires network access
"test_reader_url"
];
meta = with lib; {
description = "Python read/write support for ESRI Shapefile format";
homepage = "https://github.com/GeospatialPython/pyshp";