From d04acdc3cc57b88b68db98b26473f077ba64e287 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Fri, 29 Jul 2022 20:17:53 +0200 Subject: [PATCH] python310Packages.pyshp: disable on older Python releases --- .../python-modules/pyshp/default.nix | 20 +++++++++++++------ 1 file changed, 14 insertions(+), 6 deletions(-) diff --git a/pkgs/development/python-modules/pyshp/default.nix b/pkgs/development/python-modules/pyshp/default.nix index cd42a4a0a694..3100709004cf 100644 --- a/pkgs/development/python-modules/pyshp/default.nix +++ b/pkgs/development/python-modules/pyshp/default.nix @@ -1,19 +1,27 @@ -{ lib, buildPythonPackage, fetchPypi -, setuptools }: +{ lib +, buildPythonPackage +, fetchPypi +, pythonOlder +}: buildPythonPackage rec { - version = "2.3.1"; pname = "pyshp"; + version = "2.3.1"; + format = "setuptools"; + + disabled = pythonOlder "3.7"; src = fetchPypi { inherit pname version; - sha256 = "sha256-TK7IL9jdCW/rqCF4WAaLrLKjtZUPQ8BIxtwyo0idWvE="; + hash = "sha256-TK7IL9jdCW/rqCF4WAaLrLKjtZUPQ8BIxtwyo0idWvE="; }; - pythonImportsCheck = [ "shapefile" ]; + pythonImportsCheck = [ + "shapefile" + ]; meta = with lib; { - description = "Pure Python read/write support for ESRI Shapefile format"; + description = "Python read/write support for ESRI Shapefile format"; homepage = "https://github.com/GeospatialPython/pyshp"; license = licenses.mit; maintainers = with maintainers; [ ];