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