python310Packages.pyshp: enable tests
This commit is contained in:
parent
d04acdc3cc
commit
e4b1f9e0f2
1 changed files with 16 additions and 4 deletions
|
@ -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";
|
||||
|
|
Loading…
Reference in a new issue