1{ lib
2, buildPythonPackage
3, fetchPypi
4, stdenv
5, libcxx
6, cppy
7}:
8
9buildPythonPackage rec {
10 pname = "kiwisolver";
11 version = "1.3.2";
12
13 src = fetchPypi {
14 inherit pname version;
15 sha256 = "fc4453705b81d03568d5b808ad8f09c77c47534f6ac2e72e733f9ca4714aa75c";
16 };
17
18 NIX_CFLAGS_COMPILE = lib.optionalString stdenv.isDarwin "-I${lib.getDev 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}