3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/python-modules/pyshp/default.nix
Guillaume Girol 33afbf39f6 treewide: switch to nativeCheckInputs
checkInputs used to be added to nativeBuildInputs. Now we have
nativeCheckInputs to do that instead. Doing this treewide change allows
to keep hashes identical to before the introduction of
nativeCheckInputs.
2023-01-21 12:00:00 +00:00

42 lines
777 B
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, pytestCheckHook
, pythonOlder
}:
buildPythonPackage rec {
pname = "pyshp";
version = "2.3.1";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "GeospatialPython";
repo = pname;
rev = version;
hash = "sha256-yfxhgk8a1rdpGVkE1sjJqT6tiFLimhu2m2SjGxLI6wo=";
};
nativeCheckInputs = [
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";
license = licenses.mit;
maintainers = with maintainers; [ ];
};
}