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