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