1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 pytestCheckHook,
6 pythonOlder,
7}:
8
9buildPythonPackage rec {
10 pname = "pyshp";
11 version = "2.3.1";
12 format = "setuptools";
13
14 disabled = pythonOlder "3.7";
15
16 src = fetchFromGitHub {
17 owner = "GeospatialPython";
18 repo = pname;
19 rev = version;
20 hash = "sha256-yfxhgk8a1rdpGVkE1sjJqT6tiFLimhu2m2SjGxLI6wo=";
21 };
22
23 nativeCheckInputs = [ pytestCheckHook ];
24
25 pythonImportsCheck = [ "shapefile" ];
26
27 disabledTests = [
28 # Requires network access
29 "test_reader_url"
30 ];
31
32 meta = with lib; {
33 description = "Python read/write support for ESRI Shapefile format";
34 homepage = "https://github.com/GeospatialPython/pyshp";
35 license = licenses.mit;
36 maintainers = with maintainers; [ ];
37 };
38}