1{ lib
2, buildPythonPackage
3, fetchPypi
4, stdenv
5, libcxx
6, cppy
7}:
8
9buildPythonPackage rec {
10 pname = "kiwisolver";
11 version = "1.2.0";
12
13 src = fetchPypi {
14 inherit pname version;
15 sha256 = "247800260cd38160c362d211dcaf4ed0f7816afb5efe56544748b21d6ad6d17f";
16 };
17
18 NIX_CFLAGS_COMPILE = stdenv.lib.optionalString stdenv.isDarwin "-I${libcxx}/include/c++/v1";
19
20 nativeBuildInputs = [
21 cppy
22 ];
23
24 # Does not include tests
25 doCheck = false;
26
27 meta = {
28 description = "A fast implementation of the Cassowary constraint solver";
29 homepage = "https://github.com/nucleic/kiwi";
30 license = lib.licenses.bsd3;
31 };
32
33}