python3Packages.kiwisolver: disable on older Python releases

This commit is contained in:
Fabian Affolter
2022-03-30 09:55:32 +02:00
committed by GitHub
parent 27d065dbf2
commit 701497206b

View File

@@ -5,18 +5,24 @@
, libcxx
, cppy
, setuptools-scm
, pythonOlder
}:
buildPythonPackage rec {
pname = "kiwisolver";
version = "1.4.2";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
sha256 = "sha256-f2BtkbiogWvkdlE6d/0wq+ZiJwOb1vi0BsNIywJH3Mk=";
hash = "sha256-f2BtkbiogWvkdlE6d/0wq+ZiJwOb1vi0BsNIywJH3Mk=";
};
NIX_CFLAGS_COMPILE = lib.optionalString stdenv.isDarwin "-I${lib.getDev libcxx}/include/c++/v1";
NIX_CFLAGS_COMPILE = lib.optionalString stdenv.isDarwin [
"-I${lib.getDev libcxx}/include/c++/v1"
];
nativeBuildInputs = [
setuptools-scm
@@ -26,11 +32,14 @@ buildPythonPackage rec {
cppy
];
pythonImportsCheck = [ "kiwisolver" ];
pythonImportsCheck = [
"kiwisolver"
];
meta = with lib; {
description = "A fast implementation of the Cassowary constraint solver";
description = "Implementation of the Cassowary constraint solver";
homepage = "https://github.com/nucleic/kiwi";
license = licenses.bsd3;
maintainers = with maintainers; [ ];
};
}