1{ lib 2, buildPythonPackage 3, fetchPypi 4, stdenv 5, libcxx 6, cppy 7, setuptools-scm 8, pythonOlder 9}: 10 11buildPythonPackage rec { 12 pname = "kiwisolver"; 13 version = "1.4.4"; 14 format = "setuptools"; 15 16 disabled = pythonOlder "3.7"; 17 18 src = fetchPypi { 19 inherit pname version; 20 hash = "sha256-1BmXUZ/LpKHkbrSi/jG8EvD/lXsrgbrCjbJHRPMz6VU="; 21 }; 22 23 NIX_CFLAGS_COMPILE = lib.optionalString stdenv.isDarwin [ 24 "-I${lib.getDev libcxx}/include/c++/v1" 25 ]; 26 27 nativeBuildInputs = [ 28 setuptools-scm 29 ]; 30 31 buildInputs = [ 32 cppy 33 ]; 34 35 pythonImportsCheck = [ 36 "kiwisolver" 37 ]; 38 39 meta = with lib; { 40 description = "Implementation of the Cassowary constraint solver"; 41 homepage = "https://github.com/nucleic/kiwi"; 42 license = licenses.bsd3; 43 maintainers = with maintainers; [ ]; 44 }; 45}