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