1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 hatchling,
6 pytestCheckHook,
7}:
8
9buildPythonPackage rec {
10 pname = "pyshp";
11 version = "3.0.1";
12 pyproject = true;
13
14 src = fetchFromGitHub {
15 owner = "GeospatialPython";
16 repo = "pyshp";
17 tag = version;
18 hash = "sha256-/ziHRjMwzQe3rnMZW9FTT0fyFDPWSv+Tm+tNG67t4gE=";
19 };
20
21 build-system = [ hatchling ];
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 = [ ];
37 };
38}